Skip to content

Commit

Permalink
Switch RepublishAssetJob to its own named republish_asset queue
Browse files Browse the repository at this point in the history
  • Loading branch information
elohanlon committed Dec 24, 2024
1 parent aafe666 commit 596857c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/jobs/republish_asset_job.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class RepublishAssetJob < ActiveJob::Base
queue_as Hyacinth::Queue::DIGITAL_OBJECT_IMPORT_LOW
queue_as Hyacinth::Queue::REPUBLISH_ASSET

def perform(digital_object_pid)
obj = DigitalObject::Base.find(digital_object_pid)
Expand Down
4 changes: 3 additions & 1 deletion lib/hyacinth/queue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module Hyacinth::Queue
DIGITAL_OBJECT_IMPORT_HIGH = :digital_object_import_high
DIGITAL_OBJECT_IMPORT_MEDIUM = :digital_object_import_medium
DIGITAL_OBJECT_IMPORT_LOW = :digital_object_import_low
REPUBLISH_ASSET = :republish_asset
DIGITAL_OBJECT_CSV_EXPORT = :digital_object_csv_export
DIGITAL_OBJECT_REINDEX = :digital_object_reindex
IMAGE_SERVICE = :image_service
Expand All @@ -14,7 +15,8 @@ module Hyacinth::Queue
DIGITAL_OBJECT_IMPORT_HIGH,
DIGITAL_OBJECT_IMPORT_MEDIUM,
DIGITAL_OBJECT_IMPORT_LOW,
DIGITAL_OBJECT_REINDEX
DIGITAL_OBJECT_REINDEX,
REPUBLISH_ASSET
]

def self.process_digital_object_import(digital_object_import)
Expand Down

0 comments on commit 596857c

Please sign in to comment.