How to Cancel a Workflow
Stop a running workflow and terminate its jobs.
Cancel a Workflow
torc cancel <workflow_id>
This:
- Marks the workflow as canceled
- Stops claiming new jobs
- Sends SIGKILL to all running processes
- Sends
scancelto all active or pending Slurm allocations
Check Cancellation Status
Verify the workflow was canceled:
torc status <workflow_id>
Or check completion status:
torc workflows is-complete <workflow_id>
Output:
Workflow 42 completion status:
Is Complete: true
Is Canceled: true
Restart After Cancellation
To resume a canceled workflow:
# Reinitialize to reset canceled jobs
torc workflows reinit <workflow_id>
# Run again locally
torc run <workflow_id>
# Or submit to scheduler
torc submit <workflow_id>
Jobs that completed before cancellation remain completed.
See Also
- Track Workflow Status — Monitor workflow progress
- Intelligent Restart — Rerun affected jobs after editing inputs
- Rerun Failed Jobs — Retry jobs that failed