Delayed_job Status Overview

I implemented multi-year tasks in my Rails application using delayed_job along with delayed_job_web . My delayed_job configuration indicates that jobs should be taken once, and also for failures:

config / Initializers / delayed_job.rb:

Delayed::Worker.max_attempts = 1
Delayed::Worker.destroy_failed_jobs = false

I tried 2 test cases that automatically caused errors to see how the failures behaved. I get the following:

enter image description here

, 2, / / 0. , , Enquued/ / , (- " ".)

- ?

+3
1

https://github.com/ejschmitt/delayed_job_web/blob/master/lib/delayed_job_web/application/app.rb, ( 114):

when :working
  'locked_at is not null'
when :failed
  'last_error is not null'
when :pending
  'attempts = 0'
end
  • , .. Delayed::Job.count

  • - , delayed_job .

  • - , last_error

  • - , .

+2

All Articles