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:
@@ -102,7 +102,7 @@ export async function enqueueJob(params: StartJobParams, action: 'start' | 'queu
|
|||||||
status: run ? 'running' : 'pending',
|
status: run ? 'running' : 'pending',
|
||||||
inputs: params.inputs,
|
inputs: params.inputs,
|
||||||
cwd: params.cwd ?? null,
|
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,
|
startedAt: run ? new Date() : null,
|
||||||
});
|
});
|
||||||
if (run) launch(jobId, mode, params);
|
if (run) launch(jobId, mode, params);
|
||||||
|
|||||||
Reference in New Issue
Block a user