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:
commit
380cedc998
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue