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:
krichtof 2020-07-08 18:14:12 +02:00 committed by GitHub
commit 161b63f487
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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