no sentry reporting for api-entreprise

This commit is contained in:
Christophe Robillard 2020-07-07 16:56:13 +02:00
parent 1426dd1daa
commit d20d91bc07

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