add: set scheduled job status to 'processing' before adding to bullmq
This commit is contained in:
parent
76c9256662
commit
86337e3802
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user