Add instant check at create monitor time

This commit is contained in:
Alex Holliday committed 2024-08-02 10:14:32 -07:00
1 parent c2a341a3c5
commit 4be58cef17
1 file changed
+3
+3
View File
@@ -210,6 +210,9 @@ class JobQueue {
*/
async addJob(jobName, payload) {
try {
// Execute job immediately
await this.queue.add(jobName, payload);
await this.queue.add(jobName, payload, {
repeat: {
every: payload.interval,