32 lines
956 B
Ruby
32 lines
956 B
Ruby
if Rails.env.production? && SIDEKIQ_ENABLED
|
|
ActiveSupport.on_load(:after_initialize) do
|
|
[
|
|
ActiveStorage::AnalyzeJob,
|
|
ActiveStorage::PurgeJob,
|
|
AdminUpdateDefaultZonesJob,
|
|
APIEntreprise::Job,
|
|
AdminUpdateDefaultZonesJob,
|
|
BatchOperationEnqueueAllJob,
|
|
BatchOperationProcessOneJob,
|
|
ChampFetchExternalDataJob,
|
|
Cron::CronJob,
|
|
DestroyRecordLaterJob,
|
|
DossierIndexSearchTermsJob,
|
|
DossierOperationLogMoveToColdStorageBatchJob,
|
|
DossierRebaseJob,
|
|
ImageProcessorJob,
|
|
MaintenanceTasks::TaskJob,
|
|
Migrations::BackfillStableIdJob,
|
|
PriorizedMailDeliveryJob,
|
|
ProcedureExternalURLCheckJob,
|
|
ProcedureSVASVRProcessDossierJob,
|
|
ProcessStalledDeclarativeDossierJob,
|
|
ResetExpiringDossiersJob,
|
|
SendClosingNotificationJob,
|
|
VirusScannerJob,
|
|
WebHookJob
|
|
].each do |job_class|
|
|
job_class.queue_adapter = :sidekiq
|
|
end
|
|
end
|
|
end
|