update: status of schedule when no proxy available

This commit is contained in:
alikia2x (寒寒) 2025-04-14 00:46:43 +08:00
parent bae1f84bea
commit 6df6345ec1
Signed by: alikia2x
GPG Key ID: 56209E0CCD8420C6

View File

@ -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;
} }