Node icon indicating copy to clipboard operation
Node copied to clipboard

Graceful Shutdown UI Messaging

Open dnwiebe opened this issue 4 years ago • 0 comments

'Graceful Shutdown'

When one UI shuts down a Node with the shutdown command:

  • All other UIs connected to the Node should spontaneously show a message indicating that the Node has shut down. One way to accomplish this would be to make the Node explicitly shut down all its UI connections before it dies, and have the UIs be sensitive to their connections being closed.

  • All other UIs connected to the Daemon should spontaneously show a message indicating that the Node has shut down. One way to accomplish this (may already be implemented) is to have the Daemon sense when its child process dies and send a broadcast to all connected UIs.

  • When a UI is connected to the Node and the Node shuts down, the UI reconnects to the Daemon. However, in no case should a Node-connected UI display the shutdown message caused by the Node disconnecting, then reconnect to the Daemon and also show the broadcast from the Daemon about the Node shutdown. This may be accomplished either by preventing the Daemon from sending the broadcast to UIs that connect after it senses the Node shutdown (preferable), or by making the UI ignore the Daemon's broadcast if it has already sensed the shutdown (may be quite a bit more difficult to get the sequencing right).

dnwiebe avatar Mar 23 '21 12:03 dnwiebe