Archive old executions to a separate table
Optionalstates: ExecutionState[]Remove old completed/failed executions
Optionalstates: ExecutionState[]Shut down the engine
Get archived execution count
List executions with optional filters
OptionalworkflowName: stringOptionalstate: ExecutionStateOptionaloptions: ExecutionListOptionsUnsubscribe from a specific event type
Subscribe to a specific workflow event type
Recover orphaned executions after a crash/restart.
Retry the compensation that parked a compensation-stuck run and continue the
unwind. Use once the cause of the failed reversal has been fixed.
Send a signal to a waiting execution
Optionalpayload: unknownStart a new workflow execution
Optionalinput: unknownSubscribe to all events for a specific execution
asyncon purpose, even though the work is synchronous:resumeCompensationis async, and an operator writing recovery code under pressure reaches forPromise.allSettled([resume(id), abandon(id)]). With a sync throw that expression throws beforeallSettledis ever called, so the defensive form is the one that blows up. Matching the sibling costs nothing while the API is experimental.