Skip to content
Snippets Groups Projects
Commit bb10d893 authored by Mateus Rambo Strey's avatar Mateus Rambo Strey
Browse files

add attachment cache worker to a prioritary queue

parent 30791fa6
No related branches found
No related tags found
No related merge requests found
class AttachmentCacheWorker
require 'fileutils'
include Sidekiq::Worker
sidekiq_options queue: :attachment_cache
def perform(id, directory, force = false)
@attachment = LearningObject::Attachment.find(id)
client = DspaceService.create_client
......
......@@ -11,7 +11,9 @@
- default
- score
- convert_video
- [high_priority, 2]
- searchkick
- [attachment_cache, 2]
- [high_priority, 5]
# :daemon: true
development: &development
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment