Skip to content

Commit

Permalink
ThumbJobs
Browse files Browse the repository at this point in the history
Set queue via args
  • Loading branch information
ewlarson committed Jun 26, 2024
1 parent 3f4a010 commit 383902d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/jobs/geoblacklight_admin/delete_thumbnail_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

module GeoblacklightAdmin
class DeleteThumbnailJob < ApplicationJob
queue_as queue
queue_as do
queue = self.arguments.last
end

def perform(solr_document_id, bad_id = nil, queue = :priority)
document = Document.find_by_friendlier_id(solr_document_id)
Expand Down
4 changes: 3 additions & 1 deletion app/jobs/geoblacklight_admin/store_image_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

module GeoblacklightAdmin
class StoreImageJob < ApplicationJob
queue_as queue
queue_as do
queue = self.arguments.last
end

def perform(solr_document_id, bad_id = nil, queue = :default)
# Find the document
Expand Down

0 comments on commit 383902d

Please sign in to comment.