How to Cancel a Workflow
Stop a running workflow and terminate its jobs.
Cancel a Workflow
torc workflows 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 workflows 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 reinitialize <workflow_id>
# Run again
torc workflows run <workflow_id>
torc workflows submit <workflow_id>
Jobs that completed before cancellation remain completed.
See Also
- Track Workflow Status — Monitor workflow progress
- Workflow Reinitialization — Resume after issues