Merge pull request #5345 from betagouv/5333-no-sentry-reporting-for-api-entreprise
5333 Ne remonte plus les erreurs api-entreprise à Sentry
This commit is contained in:
commit
161b63f487
1 changed files with 4 additions and 0 deletions
|
@ -9,6 +9,10 @@ class ApiEntreprise::Job < ApplicationJob
|
|||
error(self, exception)
|
||||
end
|
||||
|
||||
def error(job, exception)
|
||||
# override ApplicationJob#error to avoid reporting to sentry
|
||||
end
|
||||
|
||||
def max_attempts
|
||||
ENV.fetch("MAX_ATTEMPTS_API_ENTREPRISE_JOBS", DEFAULT_MAX_ATTEMPTS_API_ENTREPRISE_JOBS).to_i
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue