Parent Epic
#164 — Cancel workflow on unassignment
Description
Update the runner to support graceful cancellation between steps, so a cancelled workflow stops cleanly without partial step execution.
Tasks
- The runner currently executes steps sequentially. Add a cancellation check between each step:
- Accept an optional
CancellationToken (or AtomicBool) parameter
- Before each step, check if cancellation was requested; if so, return early with a
Cancelled result (not Ok and not an error)
- The
Cancelled result should propagate up to the dispatcher, which handles workspace cleanup
Exit Criteria
- A running workflow stops between steps when cancelled
- No partial step execution
Dependencies
- Task 4 (dispatcher needs to pass the cancellation token)
Parent Epic
#164 — Cancel workflow on unassignment
Description
Update the runner to support graceful cancellation between steps, so a cancelled workflow stops cleanly without partial step execution.
Tasks
CancellationToken(orAtomicBool) parameterCancelledresult (notOkand not an error)Cancelledresult should propagate up to the dispatcher, which handles workspace cleanupExit Criteria
Dependencies