Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

detect idle sessions #1846

Open
oliver-sanders opened this issue Jun 28, 2024 · 1 comment
Open

detect idle sessions #1846

oliver-sanders opened this issue Jun 28, 2024 · 1 comment
Milestone

Comments

@oliver-sanders
Copy link
Member

(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:

  • If no user activity (e.g. click / mouse movement) is detected within a configured period.
  • We cut the websocket connection (i.e. disconnect and disable to reconnection interval).
  • And put an overlay over the page saying something along the lines of "session suspended, click to resume".
  • If the user clicks to resume, the websocket is reconnected and the session continues as normal (i.e. re-enable the reconnection interval).

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants