Skip to content
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

NoMethodError at /resque_admin/delayed undefined method `[]' for nil:NilClass #60

Open
coorasse opened this issue Mar 12, 2014 · 2 comments

Comments

@coorasse
Copy link

I can't see the delayed jobs page anymore.
That happened after removing a delayed job.
Some stacktrace:
NoMethodError - undefined method '[]' for nil:NilClass: /home/coorasse/.rvm/gems/ruby-1.9.3-p484/gems/resque-scheduler-2.4.0/lib/resque_scheduler/server.rb:137:in 'block (2 levels) in singletonclass' /home/coorasse/.rvm/gems/ruby-1.9.3-p484/gems/resque-scheduler-2.4.0/lib/resque_scheduler/server.rb:118:in 'each' /home/coorasse/.rvm/gems/ruby-1.9.3-p484/gems/resque-scheduler-2.4.0/lib/resque_scheduler/server.rb:118:in 'block in singletonclass' /home/coorasse/.rvm/gems/ruby-1.9.3-p484/gems/resque-scheduler-2.4.0/lib/resque_scheduler/server.rb:86:in 'instance_eval' /home/coorasse/.rvm/gems/ruby-1.9.3-p484/gems/resque-scheduler-2.4.0/lib/resque_scheduler/server.rb:86:in 'singletonclass' /home/coorasse/.rvm/gems/ruby-1.9.3-p484/gems/resque-scheduler-2.4.0/lib/resque_scheduler/server.rb:84:in '__tilt_6240240'

@coorasse
Copy link
Author

I solved only cleaning the Redis DB. Actually I can do that in development but not certainly in production!

@coorasse
Copy link
Author

Some mroe infos:
I added the job like that:
Resque.enqueue_at(TIME, ProposalsWorker, {:action => ProposalsWorker::ENDTIME, :proposal_id => @proposal.id})

and removed with
Resque.remove_delayed(ProposalsWorker, {:action => ProposalsWorker::ENDTIME, :proposal_id => @proposal.id})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant