Merge pull request #9732 from demarches-simplifiees/move_virus_scanner_to_sidekiq

Tech: les jobs asynchrone de controle antivirus utilise sidekiq
This commit is contained in:
LeSim 2023-11-21 15:40:19 +00:00 committed by GitHub
commit 380cedc998
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,5 +5,9 @@ if Rails.env.production? && sidekiq_enabled
class ActiveStorage::PurgeJob < ActiveStorage::BaseJob class ActiveStorage::PurgeJob < ActiveStorage::BaseJob
self.queue_adapter = :sidekiq self.queue_adapter = :sidekiq
end end
class VirusScannerJob
self.queue_adapter = :sidekiq
end
end end
end end