add: set scheduled job status to 'processing' before adding to bullmq

This commit is contained in:
alikia2x (寒寒) 2025-03-25 05:05:33 +08:00
parent 76c9256662
commit 86337e3802
Signed by: alikia2x
GPG Key ID: 56209E0CCD8420C6

View File

@ -44,6 +44,7 @@ export const snapshotTickWorker = async (_job: Job) => {
priority = priorityMap[schedule.type];
}
const aid = Number(schedule.aid);
await setSnapshotStatus(client, schedule.id, "processing");
await SnapshotQueue.add("snapshotVideo", {
aid: aid,
id: Number(schedule.id),