cylc / cylc-ui

Web app for monitoring and controlling Cylc workflows
https://cylc.github.io
GNU General Public License v3.0
35 stars 26 forks source link

detect idle sessions #1846

Open oliver-sanders opened 4 days ago

oliver-sanders commented 4 days ago

(Previously discussed but not documented)

To help avoid idle resource it would be helpful if the Cylc UI would disconnect its websockets when no longer in use.

This could be implemented via an activity timeout, e.g:

This would help to clean up necessary websocket connections, e.g. from background browser tabs left open overnight.

Cleaning up these connections will help us to clean up Cylc UI Server connections which is helpful for releasing resource and helping servers stay up to date with Cylc versions.