googleapis / googleapis/nodejs-agentplatform

Timeout prevents Node.JS from exiting

Open
#333 0 comments 0 reactions 0 assignees View on GitHub
api: aiplatform priority: p2
Dominant language
TypeScript
Stars
182
Forks
69
Avg merge
1d 8h
Merged PRs (30d)
10

Description

#### 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. https://github.com/googleapis/nodejs-vertexai/blob/2ec9e7d5519af438eb03b9f21f90b86f2575ac47/src/functions/post_request.ts#L97 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.