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 (undefined method `queue_max_job_retries' for TestJob:Class) #173

Closed
vishakhakt opened this issue Nov 11, 2021 · 3 comments
Closed

Comments

@vishakhakt
Copy link

Using backburner gem 1.5.0

The default config sets max_job_retries as 3.

Backburner.configure do |config|
   config.max_job_retries  = 3
end

For a specific job, I want to set the retries to 0

class TestJob
  include Backburner::Queue
  queue "test-job"
  queue_priority 100
  queue_respond_timeout 300
  queue_max_job_retries 0

But, adding that, I get the error -
NoMethodError (undefined method 'queue_max_job_retries' for TestJob:Class)

I also tried setting it as shown in the documents -

def self.queue_max_job_retries
    0
end

But that has no effect. It still retries it 3 times.

@nesquena
Copy link
Owner

Thanks for the report!

Unfortunately, I am no longer actively coding on this gem though I still use it myself in a few projects. I would be more than happy to merge PRs or cut releases though if someone decides to fix this!

@vishakhakt
Copy link
Author

This merged PR - #162 - should have fixed this issue. But looks like its not included in the gem release?

@nesquena
Copy link
Owner

@vishakhakt Backburner 1.6.0 has been cut now with these changes merged! Can you confirm?

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

2 participants