fix missing param
This commit is contained in:
1 parent
f0bfe1a152
commit
5d48cecee8
2 files changed
+3
-3
No files matched your search
@@ -35,9 +35,9 @@ class SuperSimpleQueue {
|
||||
this.scheduler.addTemplate("monitor-job", this.helper.getMonitorJob());
|
||||
const monitors = await this.db.monitorModule.getAllMonitors();
|
||||
for (const monitor of monitors) {
|
||||
const randomOffset = Math.floor(Math.random() * monitor.interval);
|
||||
const randomOffset = Math.floor(Math.random() * 100);
|
||||
setTimeout(() => {
|
||||
this.addJob(monitor);
|
||||
this.addJob(monitor._id, monitor);
|
||||
}, randomOffset);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user