IMQ_SHUTDOWN_TIMEOUT variable

Time in milliseconds allowed for releasing watcher locks when a shutdown signal is received, before the process is force-exited. Defaults to 1000; override with the IMQ_SHUTDOWN_TIMEOUT environment variable.

Signature:

IMQ_SHUTDOWN_TIMEOUT: number

Remarks

This is not a drain period — running message handlers are not awaited. The value is read once when the module is loaded, and a non-numeric value falls back to the default. Relevant only while IMQOptions.handleSignals is enabled.

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