-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
queue: Ability to send different signals to running tasks #8624
Comments
@karajan1001 @pmrowla Would something like |
Yes, sending sigint would work |
Why is sigkill the default? Should we default to sigint? |
Sometimes, |
@pmrowla , @dberenbaum |
Discussed this with @karajan1001, looks like there may be an issue with our SIGINT handling in |
How important is this? It seems like a new feature request that may not be urgent. Issues like #8612 should work even with SIGKILL. Can we hold off on this until we address the reported regressions and bugs? |
fix: iterative#8624 1. Add a new flag `--force` for `queue kill` 2. Make `SIGINT` to be the default option and `SIGKILL` to be with `--force` 3. Remove `SIGINT` blocking. 4. Add tests for `queue kill`
fix: iterative#8624 1. Add a new flag `--force` for `queue kill` 2. Make `SIGINT` to be the default option and `SIGKILL` to be with `--force` 3. Remove `SIGINT` blocking. 4. Add tests for `queue kill` 5. bump into dvc-task 0.1.7
fix: iterative#8624 1. Add a new flag `--force` for `queue kill` 2. Make `SIGINT` to be the default option and `SIGKILL` to be with `--force` 3. Add tests for `queue kill` 4. bump into dvc-task 0.1.7
fix: iterative#8624 1. Add a new flag `--force` for `queue kill` 2. Make `SIGINT` to be the default option and `SIGKILL` to be with `--force` 3. Add tests for `queue kill` 4. bump into dvc-task 0.1.8
fix: iterative#8624 1. Add a new flag `--force` for `queue kill` 2. Make `SIGINT` to be the default option and `SIGKILL` to be with `--force` 3. Add tests for `queue kill`
fix: iterative#8624 1. Add a new flag `--force` for `queue kill` 2. Make `SIGINT` to be the default option and `SIGKILL` to be with `--force` 3. Add tests for `queue kill` 4. Bump dvc-task into 0.1.9
fix: #8624 1. Add a new flag `--force` for `queue kill` 2. Make `SIGINT` to be the default option and `SIGKILL` to be with `--force` 3. Add tests for `queue kill` 4. Bump dvc-task into 0.1.9
dvc queue kill
can be used to terminate running tasks. One can also usedvc queue logs --follow
to attach to the output of a running task, but CTRL+C (SIGINT) will only detach but not forward the interrupt signal to the running task (which is good). There is no option at the moment to gracefully interrupt a running task, e.g., a training stage using DVC checkpoints as one can and is being used in the user guide for DVC Experiments with checkpoints. Options fordvc queue kill
which enable the user to send different signals (SIGTERM, SIGINT) to the running task similar to the Unixkill
command would be useful.Related, sending SIGINT via CTRL+C would be possible if there was a command to attach to a running task such that the signal is indeed forwarded to the task rather than handled by, e.g.,
dvc queue logs --follow
. Possibly similar todocker attach
, where one can declare--detach-keys
to detach without interrupting the task. A key combination different from CTRL+C could also have been used fordvc queue logs --follow
to unfollow / detach again without interruption (see alsotmux
) but CTRL+C would have been forwarded to the task still. This different behavior could be covered by a newdvc queue attach
command (which could makedvc queue logs --follow
obsolete actually).The text was updated successfully, but these errors were encountered: