Evolve topology_runs into a durable-job table (migration 0009): status state machine (queued/running/completed/failed/cancelled), kind, input graph, per-step checkpoint, error, last_event_id, timestamps. comparison becomes nullable (the result blob, absent until completion). Back-compat: existing rows default to completed/compare. cm-db repo gains the durable-job ops: enqueue_run, claim_next_queued (CAS via FOR UPDATE SKIP LOCKED), checkpoint, complete, fail, requeue_stale (resume sweep), and status(). Regenerated .sqlx cache. Also fix two pre-existing test RuntimeConfig literals missing the providers field (from the registry work). Co-Authored-By: Claude Opus 4.8 <[email protected]>
18 lines
419 B
JSON
18 lines
419 B
JSON
{
|
|
"db_name": "PostgreSQL",
|
|
"query": "INSERT INTO topology_runs (id, workspace_id, task, kind, status, graph)\n VALUES ($1, $2, $3, 'run', 'queued', $4)",
|
|
"describe": {
|
|
"columns": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Uuid",
|
|
"Text",
|
|
"Jsonb"
|
|
]
|
|
},
|
|
"nullable": []
|
|
},
|
|
"hash": "fafbe27a2854e8884efec77567bcf258da8d9c1b825b8e8dcfdc2c90efea31b1"
|
|
}
|