chrisboulton / php-resque-scheduler

An addon for php-resque that lets you queue jobs for execution some time in the future. Follows resque-scheduler.
MIT License
271 stars 129 forks source link

bugfix in timestamp allocation for scheduler worker #33

Open frankdebot opened 8 years ago

frankdebot commented 8 years ago
rolfvreijdenberger commented 7 years ago

Hi. in our high traffic applications we encountered bugs in the way the scheduler works if it was temporarily disabled. If there are more items in the past to be processed, the non-patched version picks up 1 item and sleeps(1) till it picks up the next. This seems to be because of a logical bug. this patch fixes that.