coleam00/Archon · error
Failed to resolve and cancel approval gate: ${err.message}
Error message
Failed to resolve and cancel approval gate: ${err.message} What it means
Error "Failed to resolve and cancel approval gate: ${err.message}" thrown in coleam00/Archon.
Source
Thrown at packages/core/src/db/workflows.ts:332
);
const resolved = (result.rowCount ?? 0) > 0;
if (resolved) {
for (const event of events) {
await insertWorkflowEvent(query, { workflow_run_id: id, ...event });
}
await insertWorkflowEvent(query, {
workflow_run_id: id,
event_type: 'workflow_cancelled',
step_name: cancellation.step_name,
data: cancellation.reason === undefined ? undefined : { reason: cancellation.reason },
});
}
return { resolved };
});
} catch (error) {
const err = error as Error;
getLog().error({ err, workflowRunId: id }, 'db.workflow_run_resolve_cancel_gate_failed');
throw new Error(`Failed to resolve and cancel approval gate: ${err.message}`);
}
}
/**
* Thrown by resumeWorkflowRun when the target run is no longer in a resumable
* state (already running/terminal, or concurrently resumed). Callers translate
* this into a user-facing "already being resumed" message instead of leaking
* the raw internal error string.
*/
export class WorkflowNotResumableError extends Error {
constructor(
public readonly runId: string,
public readonly currentStatus: string
) {
super(
`Workflow run is not resumable (id: ${runId}, status: ${currentStatus}). ` +
'It may have already been resumed, completed, or cancelled.'
);View on GitHub (pinned to 0773b97458)
When it happens
Trigger: Thrown at packages/core/src/db/workflows.ts:332 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of coleam00/Archon@0773b97458 (2026-09-01).
Data as JSON: /api/errors/8b8cdf1fc9c761f7.
Report an issue: GitHub.