rq / rq-scheduler

A lightweight library that adds job scheduling capabilities to RQ (Redis Queue)
MIT License
1.45k stars 229 forks source link

Does scheduler.cron de-duplicate jobs with the same id? #268

Open kennysong opened 3 years ago

kennysong commented 3 years ago

If I run scheduler.cron() twice with the same id argument, the job is only scheduled once.

This is great, but it's not documented anywhere. This old issue also seems to contradict what I'm seeing.

Can someone confirm that the scheduler actually de-duplicates cron jobs with the same id?

phauch commented 10 months ago

This also works for scheduler.schedule() Would be nice if this was documented anywhere :-)