coleam00/Archon · error · Error
Cannot execute run '${detachedPreCreatedRun.id}': it is ${de
Error message
Cannot execute run '${detachedPreCreatedRun.id}': it is ${detachedPreCreatedRun.status}, not a run awaiting its first execution. Resume it with `archon workflow resume` instead. What it means
Error "Cannot execute run '${detachedPreCreatedRun.id}': it is ${detachedPreCreatedRun.status}, not a run awaiting its first execution. Resume it with `archon workflow resume` instead." thrown in coleam00/Archon.
Source
Thrown at packages/cli/src/commands/workflow.ts:1499
// closed evidence. The `workflow_name` match (checked once the workflow resolves,
// below) is what stops one launch's row being executed as another workflow. Neither is
// redundant with the process-group check, and removing either reopens its own outcome.
let detachedPreCreatedRun: WorkflowRun | undefined;
if (options.detachedRunId !== undefined) {
if (!detachedProcessOwner) {
throw new Error(
'--internal-detached-run-id is set by a detached launch for its own child. ' +
'Use `archon workflow run <name> --detach`.'
);
}
detachedPreCreatedRun = (await workflowDb.getWorkflowRun(options.detachedRunId)) ?? undefined;
if (!detachedPreCreatedRun) {
throw new Error(
`Detached workflow child cannot find the run '${options.detachedRunId}' its launcher created.`
);
}
if (detachedPreCreatedRun.status !== 'pending') {
throw new Error(
`Cannot execute run '${detachedPreCreatedRun.id}': it is ${detachedPreCreatedRun.status}, ` +
'not a run awaiting its first execution. Resume it with `archon workflow resume` instead.'
);
}
}
let preparedSource: PreparedWorkflowSource | undefined;
// Pinned at the moment of prepare so the SIGINT/SIGTERM cleanup never rm's a
// path a live run is reading from. For `--container` folder-codebase runs,
// `finalizeWorkflowSource` (workflow.ts:1749) reassigns `preparedSource` to a
// new object whose `captureRoot` is the LIVE artifacts directory the run
// executes from — rm-ing `preparedSource.captureRoot` on Ctrl-C mid-run would
// destroy the run's source. The original staged path is renamed away by
// either `finalizeWorkflowSource` (container) or `executeWorkflow`'s rename
// (everything else), so an `rm` against it is a no-op once prep has moved it.
let originalStagedRoot: string | undefined;
if (!isContinuation && !options.dryRun && !options.stubsInitPath) {
try {View on GitHub (pinned to 0773b97458)
When it happens
Trigger: Thrown at packages/cli/src/commands/workflow.ts:1499 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/c0b3e6f5aa20266a.
Report an issue: GitHub.