feat(M2): Background Job Manager

This commit is contained in:
2026-05-19 20:29:35 -05:00
parent 9c7d9cbaee
commit e7b01612c8
3 changed files with 107 additions and 1 deletions
+3 -1
View File
@@ -87,7 +87,9 @@ export async function startJob(
error: `Unknown client: ${client}`,
};
writeJobFile(jobDir, errRecord, fs);
return { id: jobId, client, prompt, status: "failed", startedAt, error: errRecord.error };
return new Promise((resolve) =>
resolve({ id: jobId, client, prompt, status: "failed", startedAt, error: errRecord.error })
);
}
const args = argBuilder(prompt);