2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2024-04-04 16:37:23 +02:00
|
|
|
if Rails.env.production? && SIDEKIQ_ENABLED
|
2023-11-13 10:52:45 +01:00
|
|
|
ActiveSupport.on_load(:after_initialize) do
|
2024-06-12 16:44:46 +02:00
|
|
|
[
|
|
|
|
ActiveStorage::AnalyzeJob,
|
|
|
|
ActiveStorage::PurgeJob,
|
|
|
|
AdminUpdateDefaultZonesJob,
|
|
|
|
APIEntreprise::Job,
|
|
|
|
AdminUpdateDefaultZonesJob,
|
|
|
|
BatchOperationEnqueueAllJob,
|
|
|
|
BatchOperationProcessOneJob,
|
|
|
|
ChampFetchExternalDataJob,
|
|
|
|
Cron::CronJob,
|
|
|
|
DestroyRecordLaterJob,
|
|
|
|
DossierIndexSearchTermsJob,
|
|
|
|
DossierOperationLogMoveToColdStorageBatchJob,
|
|
|
|
DossierRebaseJob,
|
2024-06-13 13:27:32 +02:00
|
|
|
HelpscoutCreateConversationJob,
|
2024-06-12 16:44:46 +02:00
|
|
|
ImageProcessorJob,
|
|
|
|
MaintenanceTasks::TaskJob,
|
|
|
|
Migrations::BackfillStableIdJob,
|
|
|
|
PriorizedMailDeliveryJob,
|
|
|
|
ProcedureExternalURLCheckJob,
|
|
|
|
ProcedureSVASVRProcessDossierJob,
|
|
|
|
ProcessStalledDeclarativeDossierJob,
|
|
|
|
ResetExpiringDossiersJob,
|
|
|
|
SendClosingNotificationJob,
|
|
|
|
VirusScannerJob,
|
|
|
|
WebHookJob
|
|
|
|
].each do |job_class|
|
|
|
|
job_class.queue_adapter = :sidekiq
|
2024-05-22 16:43:07 +02:00
|
|
|
end
|
2023-11-13 10:52:45 +01:00
|
|
|
end
|
|
|
|
end
|