add: upsertJob for scheduleCleanup
This commit is contained in:
parent
d8b47f8fc8
commit
314beb54b5
@ -45,7 +45,10 @@ export async function initMQ() {
|
||||
immediately: true,
|
||||
});
|
||||
|
||||
await SnapshotQueue.removeJobScheduler("scheduleSnapshotTick");
|
||||
await SnapshotQueue.upsertJobScheduler("scheduleCleanup", {
|
||||
every: 30 * MINUTE,
|
||||
immediately: true,
|
||||
});
|
||||
|
||||
logger.log("Message queue initialized.");
|
||||
} finally {
|
||||
|
Loading…
Reference in New Issue
Block a user