cylc / cylc-ui

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

detect idle sessions #1846

Open oliver-sanders opened 4 months ago

oliver-sanders commented 4 months 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.

MetRonnie commented 3 months ago

Could use https://vueuse.org/core/useIdle/