Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeout prevents Node.JS from exiting #333

Open
drcrallen opened this issue May 3, 2024 · 0 comments
Open

Timeout prevents Node.JS from exiting #333

drcrallen opened this issue May 3, 2024 · 0 comments
Labels
api: aiplatform Issues related to the googleapis/nodejs-vertexai API. priority: p2 Moderately-important priority. Fix may not be included in next release.

Comments

@drcrallen
Copy link

Environment details

  • Programming language: Javascript
  • OS: Windows
  • Language runtime version: Node v20.3.1
  • Package version: 1.1.0

Steps to reproduce

  1. Construct a vertexAI.getGenerativeModel with a timeout specified in the requestOptions
  2. Finish the node script.
  3. setTimeout(() => abortController.abort(), requestOptions.timeout);
    prevents node from exiting until the timeout elapses

Expected behavior: I would like the ability to set a timeout but also exit node immediately without waiting for the timeout to elapse.

@drcrallen drcrallen added priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels May 3, 2024
@product-auto-label product-auto-label bot added the api: aiplatform Issues related to the googleapis/nodejs-vertexai API. label May 3, 2024
@happy-qiao happy-qiao removed the type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. label Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: aiplatform Issues related to the googleapis/nodejs-vertexai API. priority: p2 Moderately-important priority. Fix may not be included in next release.
Projects
None yet
Development

No branches or pull requests

2 participants