lykmapipo / kue-scheduler

A job scheduler utility for kue, backed by redis and built for node.js
246 stars 47 forks source link

'already scheduled' event always fires for unique every job #131

Open mrosendin opened 4 years ago

mrosendin commented 4 years ago

hello,

Following the unique every example, I've noticed that the 'already scheduled' event always fires. I don't understand the need for this event, can you please explain?

console output on app start:

[nodemon] starting `node ./bin/www`
Processing job with id 2 at 2019-12-05T23:37:37.730Z
Job completed with data  { deliveredAt: '2019-12-05T23:37:37.731Z' }
job already scheduled: 2

Processing job with id 2 at 2019-12-05T23:37:39.896Z

Processing job with id 2 at 2019-12-05T23:37:42.067Z
job already scheduled: 2

Processing job with id 2 at 2019-12-05T23:37:44.232Z
job already scheduled: 2

...