eventual icon indicating copy to clipboard operation
eventual copied to clipboard

Cancel Workflows

Open thantos opened this issue 3 years ago • 3 comments

Should be able to cancel a running workflow execution

  1. Fail the workflow with CancelationError
  2. cancel all running activities (by the activity looking up the workflow status during heartbeat)
  3. Cancel all children workflows that are running
  4. make no new commands
await cancelWorkflow(executionId, reason);

// cancels itself (?)
throw new CancelWorkflow(reason);

const execution = workflow.startExecution();
await execution.cancel(reason);

const execution = workflow();
await execution.cancel(reason);

thantos avatar Dec 12 '22 20:12 thantos

This seems important lol.

Same with continueAsNew

sam-goodwin avatar Mar 16 '23 09:03 sam-goodwin

I think this can be a P1, but it should stay tracked.

thantos avatar Mar 17 '23 15:03 thantos

Do we have one for continue as new?

sam-goodwin avatar Mar 17 '23 15:03 sam-goodwin