-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
resque-scheduler -D fails on last scheduled job removal #430
Comments
Here is more verbose response: resque-scheduler: [INFO] 2014-08-03T21:35:24+00:00: queueing SendEmail (send_emails) |
Thank you @wheelq. I'll have a look at it as soon as possible. |
my current fix is to create a dummy job that is not supposed to be run or runs once a year and I just do not delete it :) |
@wheelq nice :) sorry for being so late, I'll try to resolve this issue ASAP. |
I hope this would also solve the issue when trying to remove scheduled job twice so it doesn't crash |
The reload_schedule! method invoked in update_schedule returns nil if no more job is in the queue. Access the schedule Hash instead. Fixes #430
The reload_schedule! method invoked in update_schedule returns nil if no more job is in the queue. Access the schedule Hash instead. Fixes #430
When I add and remove a job, or add 5 jobs, and remove 5, scheduler fails on the last job removal:
/var/lib/gems/1.9.1/gems/resque-scheduler-3.0.0/lib/resque/scheduler.rb:295:in
block in update_schedule': undefined method
keys' for nil:NilClass (NoMethodError)The text was updated successfully, but these errors were encountered: