Some pending events are preventing the Telemetry Data Server process to exit on its own #76
Open
1 of 2 tasks
Labels
bug
Something isn't working
The process should exit automatically if there is no pending queued events in the Node Event Loop. But for some reason, there are pending events preventing the process to exit on its own. A workaround, consisting in calling
process.exit()
for forcing the exit, has been used so far, but here we try to identify the problem root cause and design a permanent proper solution accordingly.References
Event Loop
https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#setimmediate-vs-settimeout
https://nodejs.dev/learn/the-nodejs-event-loop
https://nodejs.dev/learn/understanding-process-nexttick
https://developer.mozilla.org/en-US/docs/Web/JavaScript/EventLoop
exit
callback do it). => does not solve the problem.The text was updated successfully, but these errors were encountered: