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

cylc gui: detect if a server is already running #240

Closed
oliver-sanders opened this issue Aug 31, 2021 · 1 comment
Closed

cylc gui: detect if a server is already running #240

oliver-sanders opened this issue Aug 31, 2021 · 1 comment
Assignees
Milestone

Comments

@oliver-sanders
Copy link
Member

oliver-sanders commented Aug 31, 2021

As of #230 we have reincarnated the cylc gui command.

If a server is already running and the user runs the cylc gui command again, a second server will be started which is likely not what they wanted.

This is likely to be a bugbear for Cylc 7 users who may type cylc gui automatically.

We could detect when a server is running using a flag file (e.g. in the ~/.cylc/hub dir) and:

  • Open a new browser tab pointing at the running server rather than starting a new one.
  • Or send a message to the UI app telling it to change its focus to the selected workflow:

We should take a look at Jupyter Server to see if it has any related functionality.

Related to #238, #239

@oliver-sanders
Copy link
Member Author

Closed by #370

@oliver-sanders oliver-sanders added this to the 1.2.1 milestone Sep 20, 2023
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

3 participants