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

Do that destroy_failed_jobs get honored by delayed_job? #203

Open
vpereira opened this issue Dec 23, 2021 · 0 comments
Open

Do that destroy_failed_jobs get honored by delayed_job? #203

vpereira opened this issue Dec 23, 2021 · 0 comments

Comments

@vpereira
Copy link

Hi, I use in my application the delayed_job_active_record gem, that consequently uses delayed_job. I added to an initializer named delayed_job.rb the following line:

Delayed::Worker.destroy_failed_jobs = false

I check on my console if the variable is set to false, and indeed it is set to false.

I've got some new delayed job exceptions on my errbit instance. I was expecting to be able to introspect those jobs to see why they are broken. For my surprise they are not there:

Some Debug information:

Loading production environment (Rails 6.1.4)
[1] pry(main)> Delayed::Worker.destroy_failed_jobs
=> false
[2] pry(main)> Delayed::Job.where.not(failed_at: nil)
=> []
[3] pry(main)> Delayed::Job.where.not(last_error: nil)
=> []
[4] pry(main)> Delayed::Job.count
=> 9
[5] pry(main)> 

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