chore(sidekiq): concise transition and avoid typos by not (re)opening classes
This commit is contained in:
parent
069cb04e17
commit
ae5937b22a
1 changed files with 27 additions and 94 deletions
|
@ -1,99 +1,32 @@
|
||||||
if Rails.env.production? && SIDEKIQ_ENABLED
|
if Rails.env.production? && SIDEKIQ_ENABLED
|
||||||
ActiveSupport.on_load(:after_initialize) do
|
ActiveSupport.on_load(:after_initialize) do
|
||||||
class ActiveStorage::PurgeJob < ActiveStorage::BaseJob
|
[
|
||||||
self.queue_adapter = :sidekiq
|
ActiveStorage::AnalyzeJob,
|
||||||
end
|
ActiveStorage::PurgeJob,
|
||||||
|
AdminUpdateDefaultZonesJob,
|
||||||
class ActiveStorage::AnalyzeJob < ActiveStorage::BaseJob
|
APIEntreprise::Job,
|
||||||
self.queue_adapter = :sidekiq
|
AdminUpdateDefaultZonesJob,
|
||||||
end
|
BatchOperationEnqueueAllJob,
|
||||||
|
BatchOperationProcessOneJob,
|
||||||
class VirusScannerJob
|
ChampFetchExternalDataJob,
|
||||||
self.queue_adapter = :sidekiq
|
Cron::CronJob,
|
||||||
end
|
DestroyRecordLaterJob,
|
||||||
|
DossierIndexSearchTermsJob,
|
||||||
class DossierRebaseJob < ApplicationJob
|
DossierOperationLogMoveToColdStorageBatchJob,
|
||||||
self.queue_adapter = :sidekiq
|
DossierRebaseJob,
|
||||||
end
|
ImageProcessorJob,
|
||||||
|
MaintenanceTasks::TaskJob,
|
||||||
class ProcedureExternalURLCheckJob < ApplicationJob
|
Migrations::BackfillStableIdJob,
|
||||||
self.queue_adapter = :sidekiq
|
PriorizedMailDeliveryJob,
|
||||||
end
|
ProcedureExternalURLCheckJob,
|
||||||
|
ProcedureSVASVRProcessDossierJob,
|
||||||
class MaintenanceTasks::TaskJob
|
ProcessStalledDeclarativeDossierJob,
|
||||||
self.queue_adapter = :sidekiq
|
ResetExpiringDossiersJob,
|
||||||
end
|
SendClosingNotificationJob,
|
||||||
|
VirusScannerJob,
|
||||||
class PriorizedMailDeliveryJob < ActionMailer::MailDeliveryJob
|
WebHookJob
|
||||||
self.queue_adapter = :sidekiq
|
].each do |job_class|
|
||||||
end
|
job_class.queue_adapter = :sidekiq
|
||||||
|
|
||||||
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 DossierIndexSearchTermsJob < ApplicationJob
|
|
||||||
self.queue_adapter = :sidekiq
|
|
||||||
end
|
|
||||||
|
|
||||||
class Migrations::BackfillStableIdJob
|
|
||||||
self.queue_adapter = :sidekiq
|
|
||||||
end
|
|
||||||
|
|
||||||
class Cron::CronJob < ApplicationJob
|
|
||||||
self.queue_adapter = :sidekiq
|
|
||||||
end
|
|
||||||
|
|
||||||
class APIEntreprise::Job < ApplicationJob
|
|
||||||
self.queue_adapter = :sidekiq
|
|
||||||
end
|
|
||||||
|
|
||||||
class DossierOperationLogMoveToColdStorageBatchJob < ApplicationJob
|
|
||||||
self.queue_adapter = :sidekiq
|
|
||||||
end
|
|
||||||
|
|
||||||
class BatchOperationEnqueueAllJob < ApplicationJob
|
|
||||||
self.queue_adapter = :sidekiq
|
|
||||||
end
|
|
||||||
|
|
||||||
class BatchOperationProcessOneJob < ApplicationJob
|
|
||||||
self.queue_adapter = :sidekiq
|
|
||||||
end
|
|
||||||
|
|
||||||
class TitreIdentiteWatermarkJob < ApplicationJob
|
|
||||||
self.queue_adapter = :sidekiq
|
|
||||||
end
|
|
||||||
|
|
||||||
class AdminUpdateDefaultZonesJob < ApplicationJob
|
|
||||||
self.queue_adapter = :sidekiq
|
|
||||||
end
|
|
||||||
|
|
||||||
class ProcessStalledDeclarativeDossierJob < ApplicationJob
|
|
||||||
self.queue_adapter = :sidekiq
|
|
||||||
end
|
|
||||||
|
|
||||||
class ResetExpiringDossiersJob < ApplicationJob
|
|
||||||
self.queue_adapter = :sidekiq
|
|
||||||
end
|
|
||||||
|
|
||||||
class SendClosingNotificationJob < ApplicationJob
|
|
||||||
self.queue_adapter = :sidekiq
|
|
||||||
end
|
|
||||||
|
|
||||||
class ImageProcessorJob < ApplicationJob
|
|
||||||
self.queue_adapter = :sidekiq
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue