fix: unexpectedly commented code to upsert jobs

This commit is contained in:
alikia2x (寒寒) 2025-03-15 16:51:07 +08:00
parent afffbd8ecb
commit 93bdddc21e
Signed by: alikia2x
GPG Key ID: 56209E0CCD8420C6

View File

@ -3,18 +3,18 @@ import { ClassifyVideoQueue, LatestVideosQueue, SnapshotQueue } from "lib/mq/ind
import logger from "lib/log/logger.ts"; import logger from "lib/log/logger.ts";
export async function initMQ() { export async function initMQ() {
// await LatestVideosQueue.upsertJobScheduler("getLatestVideos", { await LatestVideosQueue.upsertJobScheduler("getLatestVideos", {
// every: 1 * MINUTE, every: 1 * MINUTE,
// immediately: true, immediately: true,
// }); });
// await ClassifyVideoQueue.upsertJobScheduler("classifyVideos", { await ClassifyVideoQueue.upsertJobScheduler("classifyVideos", {
// every: 5 * MINUTE, every: 5 * MINUTE,
// immediately: true, immediately: true,
// }); });
// await LatestVideosQueue.upsertJobScheduler("collectSongs", { await LatestVideosQueue.upsertJobScheduler("collectSongs", {
// every: 3 * MINUTE, every: 3 * MINUTE,
// immediately: true, immediately: true,
// }); });
await SnapshotQueue.upsertJobScheduler("scheduleSnapshotTick", { await SnapshotQueue.upsertJobScheduler("scheduleSnapshotTick", {
every: 3 * MINUTE, every: 3 * MINUTE,
immediately: true, immediately: true,