Ability to introspect the event loop #14704
Labels
feature request
Issues that request new features to be added to Node.js.
question
Issues that look for answers.
(Leaving out the issue template as this is a feature request - hopefully this is okay; CONTRIBUTING.md doesn't really specify.)
I'm the maintainer for pump.io, a server written in Node.js. I'm working on a feature to implement zero-downtime restarts which involves gracefully shutting down and then respawning cluster processes. Basically the way this works is that the master process uses
worker.send
to signal the worker to callserver.close()
on the HTTP server(s), and then everything else in the process is shut down after that completes.However, there's still stuff keeping the process open - AFAICT some listener must still be on the event loop. It would be really awesome if I had a way to say, "just dump stack traces of everything you're watching for on the event loop" so I could track down where these listeners are being registered in the first place. (Or maybe I'm going about this all wrong? If so feel free to say so.)
The text was updated successfully, but these errors were encountered: