update: add randomness in interval of re-scheduling when no proxy available
This commit is contained in:
parent
d80a6bfcd9
commit
9ef513eed7
@ -234,7 +234,7 @@ export const takeBulkSnapshotForVideosWorker = async (job: Job) => {
|
|||||||
"fn:takeBulkSnapshotForVideosWorker",
|
"fn:takeBulkSnapshotForVideosWorker",
|
||||||
);
|
);
|
||||||
await bulkSetSnapshotStatus(client, ids, "completed");
|
await bulkSetSnapshotStatus(client, ids, "completed");
|
||||||
await bulkScheduleSnapshot(client, aidsToFetch, "normal", Date.now() + 2 * MINUTE);
|
await bulkScheduleSnapshot(client, aidsToFetch, "normal", Date.now() + 20 * MINUTE * Math.random());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
logger.error(e as Error, "mq", "fn:takeBulkSnapshotForVideosWorker");
|
logger.error(e as Error, "mq", "fn:takeBulkSnapshotForVideosWorker");
|
||||||
|
Loading…
Reference in New Issue
Block a user