Skip to content

fix: handle shutdown before worker activation#19

Open
AlexAtrx wants to merge 1 commit into
bitfinexcom:masterfrom
AlexAtrx:fix/graceful-shutdown-before-active
Open

fix: handle shutdown before worker activation#19
AlexAtrx wants to merge 1 commit into
bitfinexcom:masterfrom
AlexAtrx:fix/graceful-shutdown-before-active

Conversation

@AlexAtrx
Copy link
Copy Markdown

Summary

  • add a shared shutdown handler for SIGINT and SIGTERM
  • exit cleanly if a shutdown signal arrives before the worker becomes active
  • keep the existing hnd.stop() path for active workers

Why

If a process is stopped while it is still booting, it should not wait for the process manager hard kill timeout.

Testing

  • npm test

@AlexAtrx AlexAtrx marked this pull request as ready for review May 27, 2026 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants