From d8b47f8fc8c3068709f7a24794ea1a812080c698 Mon Sep 17 00:00:00 2001 From: alikia2x Date: Mon, 24 Mar 2025 23:37:46 +0800 Subject: [PATCH] add: log for scheduleCleanupWorker --- lib/mq/exec/snapshotTick.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/mq/exec/snapshotTick.ts b/lib/mq/exec/snapshotTick.ts index b96083b..7c3280c 100644 --- a/lib/mq/exec/snapshotTick.ts +++ b/lib/mq/exec/snapshotTick.ts @@ -271,6 +271,7 @@ export const scheduleCleanupWorker = async (_job: Job) => { const type = row.type; await setSnapshotStatus(client, id, "timeout"); await scheduleSnapshot(client, aid, type, Date.now() + 10 * SECOND); + logger.log(`Schedule ${id} has no response received for 5 minutes, rescheduled.`, "mq", "fn:scheduleCleanupWorker") } } catch (e) { logger.error(e as Error, "mq", "fn:scheduleCleanupWorker");