From 596857c11a9ef1ade185bdc8def9389bdc590b66 Mon Sep 17 00:00:00 2001 From: Eric O Date: Mon, 23 Dec 2024 20:31:28 -0500 Subject: [PATCH] Switch RepublishAssetJob to its own named republish_asset queue --- app/jobs/republish_asset_job.rb | 2 +- lib/hyacinth/queue.rb | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/jobs/republish_asset_job.rb b/app/jobs/republish_asset_job.rb index 9c3e506e9..5f5df5038 100644 --- a/app/jobs/republish_asset_job.rb +++ b/app/jobs/republish_asset_job.rb @@ -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) diff --git a/lib/hyacinth/queue.rb b/lib/hyacinth/queue.rb index 872492f6c..486b9de4b 100644 --- a/lib/hyacinth/queue.rb +++ b/lib/hyacinth/queue.rb @@ -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 @@ -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)