From 40df5028ff04c82e495aecfca35a650e42c081e4 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Wed, 27 Mar 2024 11:29:58 +0100 Subject: [PATCH] chore: move more jobs to sidekiq active_storage_analysis : queue active_storage_analysis proceduresvasvr: queue sva webhook: queue webhooks_v1 destroyrecordlater: default champfetchexternal: default dossierupdatesearch: default --- config/initializers/transition_to_sidekiq.rb | 24 ++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/config/initializers/transition_to_sidekiq.rb b/config/initializers/transition_to_sidekiq.rb index 8aa3eda56..7f319a64c 100644 --- a/config/initializers/transition_to_sidekiq.rb +++ b/config/initializers/transition_to_sidekiq.rb @@ -6,6 +6,10 @@ if Rails.env.production? && sidekiq_enabled self.queue_adapter = :sidekiq end + class ActiveStorage::AnalyzeJob < ActiveStorage::BaseJob + self.queue_adapter = :sidekiq + end + class VirusScannerJob self.queue_adapter = :sidekiq end @@ -25,5 +29,25 @@ if Rails.env.production? && sidekiq_enabled class PriorizedMailDeliveryJob < ActionMailer::MailDeliveryJob self.queue_adapter = :sidekiq end + + class ProcedureSVASVRProcessDossierJob < ApplicationJob + self.queue_adapter = :sidekiq + end + + class WebhookJob < ApplicationJob + self.queue_adapter = :sidekiq + end + + class DestroyRecordLaterJob < ApplicationJob + self.queue_adapter = :sidekiq + end + + class ChampFetchExternalDataJob < ApplicationJob + self.queue_adapter = :sidekiq + end + + class DossierUpdateSearchTermsJob < ApplicationJob + self.queue_adapter = :sidekiq + end end end