feat(M2): Background Job Manager
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user