-
Notifications
You must be signed in to change notification settings - Fork 95
Open
Labels
bugSomething is wrong :(Something is wrong :(questionFlag this as a question for the next Cylc project meeting.Flag this as a question for the next Cylc project meeting.small
Milestone
Description
If you are running a workflow remotely in no-detach mode, then running ctrl+c only kills the local process (which is essentially just doing cylc cat-log -m t at this point) but does not send the kill signal to the reinvoked remote process.
This makes perfect sense, the scheduler command was reinvoked on a remote host, ctrl+c is not going to kill that. However, this is inconsistent with the localhost behavior and the host config can be set in the global config so the user is not necessarily aware that the scheduler is being invoked remotely (caught me out!).
Reproducible Example
[me] $ cylc vip --host=other --no-detach myworkflow
...
^C
[me] $ cylc scan -f name
myworkflow
[me] $ echo 'confused!'Options
- Don't allow this combination of options: play: --no-detach should infer --host=localhost #4886
- Capture
KeyboardInterruptand log a message explaining that the scheduler is still running. - Capture
KeyboardInterruptand invoke a subprocess to runssh <server> kill <pid>🤮 .
I don't think that this combination of options is ever used intentionally so would lean towards option (1).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething is wrong :(Something is wrong :(questionFlag this as a question for the next Cylc project meeting.Flag this as a question for the next Cylc project meeting.small