diff --git a/app/jobs/dossier_rebase_job.rb b/app/jobs/dossier_rebase_job.rb index 916d9d1e1..50d1c7d36 100644 --- a/app/jobs/dossier_rebase_job.rb +++ b/app/jobs/dossier_rebase_job.rb @@ -1,4 +1,6 @@ class DossierRebaseJob < ApplicationJob + queue_as :low_priority # they are massively enqueued, so don't interfere with others especially antivirus + # If by the time the job runs the Dossier has been deleted, ignore the rebase discard_on ActiveRecord::RecordNotFound