eventual
eventual copied to clipboard
Cancel Workflows
Should be able to cancel a running workflow execution
- Fail the workflow with CancelationError
- cancel all running activities (by the activity looking up the workflow status during heartbeat)
- Cancel all children workflows that are running
- 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);
This seems important lol.
Same with continueAsNew
I think this can be a P1, but it should stay tracked.
Do we have one for continue as new?