nesquena / backburner

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

ActiveJob based of backburner is restarting the job within #167

Closed praveenkumarsinha closed 3 years ago

praveenkumarsinha commented 3 years ago

Sorry if this is stupid but i have a situation. ActiveJob based of backburner is restarting the job within, without any proper explanation. While the code executes successfully when executed in non-async mode.

Any thoughts?

contentfree commented 3 years ago

What version of ActiveJob? Are you using a retry handler?

praveenkumarsinha commented 3 years ago

O i think i got the answer. It's the timeout. But unfortunately it never pops up in any kind of log when "god" keeps a check on its process status.

When i disable god and process halts then i see a log output like this Exception Backburner::Job::JobTimeout -> ActiveJob::QueueAdapters::BackburnerAdapter::JobWrapper({"job_class"=>"ImporterJob", "job_id"=>"e24002fe-0fbb-47c0-9f1b-1ec7f072f552", "provider_job_id"=>nil, "queue_name"=>"development.default", "priority"=>nil, "arguments"=>["dry_run", "sample_import.csv"], "executions"=>0, "exception_executions"=>{}, "locale"=>"en", "timezone"=>"UTC", "enqueued_at"=>"2020-11-24T11:32:56Z"}) hit 119s timeout.