update: status of schedule when no proxy available
This commit is contained in:
parent
bae1f84bea
commit
6df6345ec1
@ -277,7 +277,7 @@ export const takeBulkSnapshotForVideosWorker = async (job: Job) => {
|
|||||||
"mq",
|
"mq",
|
||||||
"fn:takeBulkSnapshotForVideosWorker",
|
"fn:takeBulkSnapshotForVideosWorker",
|
||||||
);
|
);
|
||||||
await bulkSetSnapshotStatus(client, ids, "completed");
|
await bulkSetSnapshotStatus(client, ids, "no_proxy");
|
||||||
await bulkScheduleSnapshot(client, aidsToFetch, "normal", Date.now() + 20 * MINUTE * Math.random());
|
await bulkScheduleSnapshot(client, aidsToFetch, "normal", Date.now() + 20 * MINUTE * Math.random());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -356,7 +356,7 @@ export const takeSnapshotForVideoWorker = async (job: Job) => {
|
|||||||
"mq",
|
"mq",
|
||||||
"fn:takeSnapshotForVideoWorker",
|
"fn:takeSnapshotForVideoWorker",
|
||||||
);
|
);
|
||||||
await setSnapshotStatus(client, id, "completed");
|
await setSnapshotStatus(client, id, "no_proxy");
|
||||||
await scheduleSnapshot(client, aid, type, Date.now() + retryInterval);
|
await scheduleSnapshot(client, aid, type, Date.now() + retryInterval);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user