IMQServiceOptions.drainTimeout property

Milliseconds a drain waits for in-flight requests before giving up on them and exiting anyway. Ignored unless IMQServiceOptions.drain is on.

Signature:

drainTimeout?: number;

Default Value

the IMQ_DRAIN_TIMEOUT environment variable, itself defaulting to DEFAULT_IMQ_DRAIN_TIMEOUT (4000)

Remarks

The wait is always bounded: whatever has not finished by then is abandoned, logged, and the process exits 0 regardless.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.