Merge pull request #5269 from tchak/fix-job-max-attempts
Fix job max attempts
This commit is contained in:
commit
8dcfdedc3e
2 changed files with 2 additions and 2 deletions
|
@ -10,6 +10,6 @@ class ApiEntreprise::Job < ApplicationJob
|
|||
end
|
||||
|
||||
def max_attempts
|
||||
ENV[MAX_ATTEMPTS_API_ENTREPRISE_JOBS].to_i || DEFAULT_MAX_ATTEMPTS_API_ENTREPRISE_JOBS
|
||||
ENV.fetch("MAX_ATTEMPTS_API_ENTREPRISE_JOBS", DEFAULT_MAX_ATTEMPTS_API_ENTREPRISE_JOBS).to_i
|
||||
end
|
||||
end
|
||||
|
|
|
@ -14,6 +14,6 @@ class ApplicationJob < ActiveJob::Base
|
|||
end
|
||||
|
||||
def max_attempts
|
||||
ENV["MAX_ATTEMPTS_JOBS"].to_i || DEFAULT_MAX_ATTEMPTS_JOBS
|
||||
ENV.fetch("MAX_ATTEMPTS_JOBS", DEFAULT_MAX_ATTEMPTS_JOBS).to_i
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue