You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varkue=require('kue-scheduler');varQueue=kue.createQueue({restore: true});//create a job instancevarjob=Queue.createJob('every',{time:'every 10 secs'}).attempts(3)// .backoff(backoff).priority('normal').save(function(err){console.log('the err',err)console.log(job.id);})//schedule it to run every 2 secondsQueue.every('10 seconds',job);
the above will act as publisher. Run this and this will create a recurring job with some id.
And you can stop this process
Hi,
the above will act as publisher. Run this and this will create a recurring job with some id.
And you can stop this process
In other file copy this code and run this. As expected for every 10s a job is pushed to queue and finised.
But if we run above code in multiple terminals at same time, the jobs are pushed at random intervals not 10s. This is weird behaviour.
The text was updated successfully, but these errors were encountered: