From 46b342005a699ad768ea8573c0ad288a43d6c6d0 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Sat, 30 Aug 2025 11:11:58 -0700 Subject: [PATCH] update monitor interval and data --- .../infrastructure/SuperSimpleQueue/SuperSimpleQueue.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/service/infrastructure/SuperSimpleQueue/SuperSimpleQueue.js b/server/src/service/infrastructure/SuperSimpleQueue/SuperSimpleQueue.js index 47d73c0df..c1e82af65 100644 --- a/server/src/service/infrastructure/SuperSimpleQueue/SuperSimpleQueue.js +++ b/server/src/service/infrastructure/SuperSimpleQueue/SuperSimpleQueue.js @@ -88,7 +88,7 @@ class SuperSimpleQueue { }; updateJob = async (monitor) => { - this.scheduler.updateJob(monitor._id.toString(), monitor.interval); + this.scheduler.updateJob(monitor._id.toString(), { repeat: monitor.interval, data: monitor.toObject() }); }; shutdown = async () => { @@ -141,6 +141,7 @@ class SuperSimpleQueue { monitorId: job.id, monitorUrl: job?.data?.url || null, monitorType: job?.data?.type || null, + monitorInterval: job?.data?.interval || null, active: job.active, lockedAt: job.lockedAt, runCount: job.runCount || 0,