From d20d91bc07634a78ee3a059deab712f4bcfc6e22 Mon Sep 17 00:00:00 2001 From: Christophe Robillard Date: Tue, 7 Jul 2020 16:56:13 +0200 Subject: [PATCH] no sentry reporting for api-entreprise --- app/jobs/api_entreprise/job.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/jobs/api_entreprise/job.rb b/app/jobs/api_entreprise/job.rb index 912431b8d..61797fa5f 100644 --- a/app/jobs/api_entreprise/job.rb +++ b/app/jobs/api_entreprise/job.rb @@ -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