Skip to content

Commit

Permalink
Add aliases for renamed Sidekiq jobs
Browse files Browse the repository at this point in the history
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
#1493.
  • Loading branch information
brucebolt committed Sep 25, 2024
1 parent 405f8e3 commit 59ff3d8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/sidekiq/delete_asset_file_from_nfs_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ def perform(asset_id)
end
end
end

DeleteAssetFileFromNfsWorker = DeleteAssetFileFromNfsJob
2 changes: 2 additions & 0 deletions app/sidekiq/save_to_cloud_storage_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ def perform(asset_id)
end
end
end

SaveToCloudStorageWorker = SaveToCloudStorageJob
2 changes: 2 additions & 0 deletions app/sidekiq/virus_scan_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ def perform(asset_id)
end
end
end

VirusScanWorker = VirusScanJob

0 comments on commit 59ff3d8

Please sign in to comment.