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];
|
priority = priorityMap[schedule.type];
|
||||||
}
|
}
|
||||||
const aid = Number(schedule.aid);
|
const aid = Number(schedule.aid);
|
||||||
|
await setSnapshotStatus(client, schedule.id, "processing");
|
||||||
await SnapshotQueue.add("snapshotVideo", {
|
await SnapshotQueue.add("snapshotVideo", {
|
||||||
aid: aid,
|
aid: aid,
|
||||||
id: Number(schedule.id),
|
id: Number(schedule.id),
|
||||||
|
Loading…
Reference in New Issue
Block a user