jobs: default config to {} — config-less script tasks failed the NOT NULL insert

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-23 15:54:23 +00:00
co-authored by Claude Opus 4.8
parent f77ce3fb96
commit 39a235197c
@@ -102,7 +102,7 @@ export async function enqueueJob(params: StartJobParams, action: 'start' | 'queu
status: run ? 'running' : 'pending',
inputs: params.inputs,
cwd: params.cwd ?? null,
config: params.config,
config: params.config ?? {}, // column is NOT NULL; many script tasks have no config block
startedAt: run ? new Date() : null,
});
if (run) launch(jobId, mode, params);