coleam00/Archon · error

Failed to read workflow run after update: ${err.message}

Error message

Failed to read workflow run after update: ${err.message}

What it means

Error "Failed to read workflow run after update: ${err.message}" thrown in coleam00/Archon.

Source

Thrown at packages/core/src/db/workflows.ts:1029

    const currentStatus = probeRows[0]?.status;
    if (currentStatus === undefined) {
      getLog().warn({ workflowRunId: id }, 'db.workflow_run_resume_not_found');
      throw new Error(`Workflow run not found (id: ${id})`);
    }
    getLog().info({ workflowRunId: id, currentStatus }, 'db.workflow_run_resume_not_resumable');
    throw new WorkflowNotResumableError(id, currentStatus);
  }

  let selectResult: Awaited<ReturnType<typeof pool.query<WorkflowRun>>>;
  try {
    selectResult = await pool.query<WorkflowRun>(
      'SELECT * FROM remote_agent_workflow_runs WHERE id = $1',
      [id]
    );
  } catch (error) {
    const err = error as Error;
    getLog().error({ err, workflowRunId: id }, 'db.workflow_run_resume_select_failed');
    throw new Error(`Failed to read workflow run after update: ${err.message}`);
  }

  const row = selectResult.rows[0];
  if (!row) {
    getLog().error({ workflowRunId: id }, 'db.workflow_run_resume_vanished');
    throw new Error(`Workflow run vanished after update (id: ${id})`);
  }
  return normalizeWorkflowRun(row);
}

export async function recoverCancelledFanOutRun(id: string): Promise<WorkflowRun> {
  const dialect = getDialect();
  const cancelledReason =
    getDatabaseType() === 'postgresql'
      ? "metadata->>'cancelled_reason'"
      : "json_extract(metadata, '$.cancelled_reason')";
  const metadataWithoutCancelledReason =
    getDatabaseType() === 'postgresql'

View on GitHub (pinned to 0773b97458)

When it happens

Trigger: Thrown at packages/core/src/db/workflows.ts:1029 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/54b9ed460700c27e. Report an issue: GitHub.