Skip to content

#164.5 — Runner: graceful cancellation between steps #181

Description

@zeroklaw

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions