From de82ab8dfde0939cbdb9e1157b8b18e527bbe1a3 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Tue, 21 Nov 2023 16:13:32 +0100 Subject: [PATCH] move virus scanner job to sidekiq --- config/initializers/transition_to_sidekiq.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/initializers/transition_to_sidekiq.rb b/config/initializers/transition_to_sidekiq.rb index e64c9aa4f..352b01e6c 100644 --- a/config/initializers/transition_to_sidekiq.rb +++ b/config/initializers/transition_to_sidekiq.rb @@ -5,5 +5,9 @@ if Rails.env.production? && sidekiq_enabled class ActiveStorage::PurgeJob < ActiveStorage::BaseJob self.queue_adapter = :sidekiq end + + class VirusScannerJob + self.queue_adapter = :sidekiq + end end end