nesquena / backburner

Simple and reliable beanstalkd job queue for ruby
http://nesquena.github.com/backburner
MIT License
428 stars 68 forks source link

Exception NoMethodError -> undefined method `ttr' for nil:NilClass #175

Open supremoUL opened 2 years ago

supremoUL commented 2 years ago

For some unknown reason this error is occurring continuously, when I switched my worker type from simple to threadsonfork.

It is running on centos 7. There is a possible suspicion that beanstalkd was restarted and after that this error is coming continuously. Here is the backtrace -

vendor/cache/ruby/2.2.0/gems/beaneater-1.0.0/lib/beaneater/job/record.rb:157:in `ttr' 
vendor/cache/ruby/2.2.0/gems/backburner-1.2.0/lib/backburner/job.rb:54:in `block in process' 
vendor/cache/ruby/2.2.0/gems/backburner-1.2.0/lib/backburner/hooks.rb:28:in `call' 
vendor/cache/ruby/2.2.0/gems/backburner-1.2.0/lib/backburner/hooks.rb:28:in `block in around_hook_events' 
vendor/cache/ruby/2.2.0/gems/backburner-1.2.0/lib/backburner/hooks.rb:37:in `call' 
vendor/cache/ruby/2.2.0/gems/backburner-1.2.0/lib/backburner/hooks.rb:37:in `around_hook_events' 
vendor/cache/ruby/2.2.0/gems/backburner-1.2.0/lib/backburner/job.rb:48:in `process' 
vendor/cache/ruby/2.2.0/gems/backburner-1.2.0/lib/backburner/worker.rb:135:in `work_one_job' 
vendor/cache/ruby/2.2.0/gems/backburner-1.2.0/lib/backburner/workers/threads_on_fork.rb:211:in `run_while_can' 
vendor/cache/ruby/2.2.0/gems/backburner-1.2.0/lib/backburner/workers/threads_on_fork.rb:187:in `fork_inner' 
vendor/cache/ruby/2.2.0/gems/backburner-1.2.0/lib/backburner/workers/threads_on_fork.rb:164:in `block in fork_tube' 
vendor/cache/ruby/2.2.0/gems/backburner-1.2.0/lib/backburner/workers/threads_on_fork.rb:251:in `call' 
vendor/cache/ruby/2.2.0/gems/backburner-1.2.0/lib/backburner/workers/threads_on_fork.rb:251:in `block in fork_it' 
vendor/cache/ruby/2.2.0/gems/backburner-1.2.0/lib/backburner/workers/threads_on_fork.rb:248:in `fork' 
vendor/cache/ruby/2.2.0/gems/backburner-1.2.0/lib/backburner/workers/threads_on_fork.rb:248:in `fork_it' 
vendor/cache/ruby/2.2.0/gems/backburner-1.2.0/lib/backburner/workers/threads_on_fork.rb:163:in `fork_tube' 
vendor/cache/ruby/2.2.0/gems/backburner-1.2.0/lib/backburner/workers/threads_on_fork.rb:150:in `block in fork_and_watch'
 I, [2022-02-12T20:28:48.436470 #8638] INFO -- : Finished ActiveJob::QueueAdapters::BackburnerAdapter::JobWrapper in 63694ms failed: attempt 1 of 1, burying

Any suggestion for this issue will be highly appreciated.

nesquena commented 2 years ago

Sorry to hear that it isn't working due to that nil error.

I don't think I've seen this error before, so I can't easily speak to it. If anyone can figure out what might be going wrong here, I'd be happy to merge any PRs as a result.