diff --git a/config/initializers/transition_to_sidekiq.rb b/config/initializers/transition_to_sidekiq.rb index 6dd570e85..76f64335b 100644 --- a/config/initializers/transition_to_sidekiq.rb +++ b/config/initializers/transition_to_sidekiq.rb @@ -57,5 +57,9 @@ if Rails.env.production? && SIDEKIQ_ENABLED class Cron::CronJob < ApplicationJob self.queue_adapter = :sidekiq end + + class APIEntreprise::EntrepriseJob < APIEntreprise::Job + self.queue_adapter = :sidekiq + end end end