Skip to content

Abort or interrupt a running run #4574

@taylordowns2000

Description

@taylordowns2000

I'd like to be able to cancel a run that's already claimed, started, or in progress. Sometimes something goes wrong and you know you want to stop it right away, but a long run might take 45 minutes to complete or, worse yet, a crashed worker might not lead to your run being marked as "lost" for 60 minutes.

Proposal

  1. Click into a running run, and you should find a "cancel" button.
  2. Select a bunch of work orders from history in state "running" and you should be able to cancel any associated runs for those work orders (in the same way you can cancel pending runs in Cancel runs individually or in bulk #1622 )
  3. Doing so should send a new event to the worker, telling it to abort, cease & desist, etc., etc.
  4. The worker should then send back some tidying up data - last logs, final state with a cancellation reason, etc.
  5. Basically, we don't want to shut the door from the lightning side... we want to tell the worker to stop and clean up immediately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Product Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions