You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm implementing a worker process with the following requirements:
The notification listener should retry reconnecting indefinitely. (Infinite retry attempts, no timeout)
The worker process should respond to SIGINT signals, and gracefully terminate.
The "reconnect" loop does not respond to any signal from calling close(), so it will attempt to reconnect indefinitely. The promise hangs around and prevents the process from closing normally. (I've even seen odd behaviour where I've killed the process using kill -15 1234, and it returns to the terminal prompt, but I still see "reconnecting" messages logged. 😳)
I'm implementing a worker process with the following requirements:
SIGINT
signals, and gracefully terminate.The "reconnect" loop does not respond to any signal from calling
close()
, so it will attempt to reconnect indefinitely. The promise hangs around and prevents the process from closing normally. (I've even seen odd behaviour where I've killed the process usingkill -15 1234
, and it returns to the terminal prompt, but I still see "reconnecting" messages logged. 😳)A rough sketch:
The text was updated successfully, but these errors were encountered: