lykmapipo / kue-scheduler

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

How to update shedule (time period) for 'unique' job? #119

Open syarhei opened 6 years ago

syarhei commented 6 years ago

When I start Server with job at the first time with one time period, then change time period and restart server, cron-job works using old time period and not update it after restarting.

vjustov commented 5 years ago

I have the same problem.

AdamSutch commented 5 years ago

You need to remove it and add it again for it to pickup changes. kueScheduler.remove({unique: 'my-unique-job-name'}); and then add it again.