From cc4d1240683a65391997d0623983286222320da8 Mon Sep 17 00:00:00 2001 From: Martin Date: Tue, 27 Jun 2023 15:54:36 +0200 Subject: [PATCH] tech(expires): pause car on est entrain de trop enqueue de jobs --- app/jobs/cron/expired_dossiers_termine_deletion_job.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/jobs/cron/expired_dossiers_termine_deletion_job.rb b/app/jobs/cron/expired_dossiers_termine_deletion_job.rb index ce47f3f5a..0d9e796f1 100644 --- a/app/jobs/cron/expired_dossiers_termine_deletion_job.rb +++ b/app/jobs/cron/expired_dossiers_termine_deletion_job.rb @@ -2,6 +2,7 @@ class Cron::ExpiredDossiersTermineDeletionJob < Cron::CronJob self.schedule_expression = "every day at 7 am" def perform(*args) - ExpiredDossiersDeletionService.new.process_expired_dossiers_termine + # ExpiredDossiersDeletionService.new.process_expired_dossiers_termine + return "until we purge stock" end end