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
This commit is contained in:
simon lehericey 2024-03-27 11:29:58 +01:00
parent a30dfaf118
commit 40df5028ff
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5

View file

@ -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