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,