preview auto-refresh after chat tool calls, gmail sync label scoping, queue notify option, workspace-scoped chat sessions
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -21,6 +21,7 @@ export async function enqueue(params: EnqueueParams): Promise<Job> {
|
||||
currentStep: 0,
|
||||
createdAt: Date.now(),
|
||||
meta: params.meta,
|
||||
notify: params.notify,
|
||||
};
|
||||
|
||||
await writeJob(job);
|
||||
@@ -175,7 +176,7 @@ async function runJob(job: Job) {
|
||||
fresh.completedAt = Date.now();
|
||||
await writeJob(fresh);
|
||||
console.error(`[queue] Job ${fresh.id} failed at step "${step.name}":`, errorMessage);
|
||||
await notifyFailure(fresh);
|
||||
if (fresh.notify !== false) await notifyFailure(fresh);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -186,7 +187,7 @@ async function runJob(job: Job) {
|
||||
final.completedAt = Date.now();
|
||||
await writeJob(final);
|
||||
console.log(`[queue] Job ${final.id} completed`);
|
||||
await notifyCompletion(final);
|
||||
if (final.notify !== false) await notifyCompletion(final);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user