pub async fn cancel(
pool: &Pool,
state: &mut WorkflowState,
decided_by: i64,
) -> Result<(), ExecError>Expand description
Cancel an in-flight workflow. Marks the WorkflowState Cancelled
and any in-progress TaskState Skipped. Used when an editor
pulls the page out of review entirely.
Returns false, changing nothing, when the step was already decided.
ยงErrors
Driver / query failures.