From 9cb94f92a6e47cea8ad595bb04450d384fed0497 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Thu, 7 Sep 2023 16:53:37 +0200 Subject: [PATCH] fix(archive): do not retry 25 times if the related objected does not exist no more --- app/jobs/archive_creation_job.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/jobs/archive_creation_job.rb b/app/jobs/archive_creation_job.rb index 661996ffb..7a7abbfa2 100644 --- a/app/jobs/archive_creation_job.rb +++ b/app/jobs/archive_creation_job.rb @@ -1,4 +1,6 @@ class ArchiveCreationJob < ApplicationJob + discard_on ActiveRecord::RecordNotFound + queue_as :archives def max_run_time