From 59ff3d8e02d98f2a54d05bae46b036d5f712737b Mon Sep 17 00:00:00 2001 From: Bruce Bolt Date: Wed, 25 Sep 2024 11:15:12 +0100 Subject: [PATCH] Add aliases for renamed Sidekiq jobs This is the suggestion in the Sidekiq FAQs: https://github.com/sidekiq/sidekiq/wiki/FAQ#how-do-i-safely-rename-a-worker The workers were renamed in https://github.com/alphagov/asset-manager/pull/1493. --- app/sidekiq/delete_asset_file_from_nfs_job.rb | 2 ++ app/sidekiq/save_to_cloud_storage_job.rb | 2 ++ app/sidekiq/virus_scan_job.rb | 2 ++ 3 files changed, 6 insertions(+) diff --git a/app/sidekiq/delete_asset_file_from_nfs_job.rb b/app/sidekiq/delete_asset_file_from_nfs_job.rb index 103080d1..d3f3299a 100644 --- a/app/sidekiq/delete_asset_file_from_nfs_job.rb +++ b/app/sidekiq/delete_asset_file_from_nfs_job.rb @@ -10,3 +10,5 @@ def perform(asset_id) end end end + +DeleteAssetFileFromNfsWorker = DeleteAssetFileFromNfsJob diff --git a/app/sidekiq/save_to_cloud_storage_job.rb b/app/sidekiq/save_to_cloud_storage_job.rb index fffae7a4..cd6706a7 100644 --- a/app/sidekiq/save_to_cloud_storage_job.rb +++ b/app/sidekiq/save_to_cloud_storage_job.rb @@ -11,3 +11,5 @@ def perform(asset_id) end end end + +SaveToCloudStorageWorker = SaveToCloudStorageJob diff --git a/app/sidekiq/virus_scan_job.rb b/app/sidekiq/virus_scan_job.rb index 6be9b368..5430956b 100644 --- a/app/sidekiq/virus_scan_job.rb +++ b/app/sidekiq/virus_scan_job.rb @@ -19,3 +19,5 @@ def perform(asset_id) end end end + +VirusScanWorker = VirusScanJob