From b4e850b88bd9684de2dde756ee203309f985020f Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Thu, 16 Sep 2021 11:19:42 -0500 Subject: [PATCH] config: remove old retro-compatibility Job constants These constants were defined so that existing enqueued jobs wouldn't fail during the app upgrade. These jobs are long gone. Let's remove the compatibility code. --- .../initializers/active_job_compatibility.rb | 34 ------------------- 1 file changed, 34 deletions(-) delete mode 100644 config/initializers/active_job_compatibility.rb diff --git a/config/initializers/active_job_compatibility.rb b/config/initializers/active_job_compatibility.rb deleted file mode 100644 index 9a90cfe50..000000000 --- a/config/initializers/active_job_compatibility.rb +++ /dev/null @@ -1,34 +0,0 @@ -# The following jobs were renamed, but instances using the old name -# were still scheduled to run on the job queue. -# -# To ensure the job queue can instantiate these jobs using the previous -# names, this file defines retro-compatibility aliases. -# -# Once all jobs running using the previous name will have run, this -# file can be safely deleted. -# -# (That probably means a few hours after deploying the rename in production -# - but let's keep these for a while to make external integrators's life easier. -# To keep some margin, let's say this file can be safely deleted in May 2021.) - -Rails.application.reloader.to_prepare do - if !defined?(ApiEntreprise) - require 'excon' - - module ApiEntreprise - Job = APIEntreprise::Job - AssociationJob = APIEntreprise::AssociationJob - AttestationFiscaleJob = APIEntreprise::AttestationFiscaleJob - AttestationSocialeJob = APIEntreprise::AttestationSocialeJob - BilansBdfJob = APIEntreprise::BilansBdfJob - EffectifsAnnuelsJob = APIEntreprise::EffectifsAnnuelsJob - EffectifsJob = APIEntreprise::EffectifsJob - EntrepriseJob = APIEntreprise::EntrepriseJob - ExercicesJob = APIEntreprise::ExercicesJob - end - - module Cron - FixMissingAntivirusAnalysis = FixMissingAntivirusAnalysisJob - end - end -end