From 639a60184ff1d6154cf0b96a72066b2dbbe90521 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Tue, 18 Jun 2019 13:53:56 +0200 Subject: [PATCH] separate queue for doi transfers. #295 --- app/jobs/transfer_job.rb | 2 +- config/shoryuken.yml | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/jobs/transfer_job.rb b/app/jobs/transfer_job.rb index a2ffbfc4e..3c4790157 100644 --- a/app/jobs/transfer_job.rb +++ b/app/jobs/transfer_job.rb @@ -1,5 +1,5 @@ class TransferJob < ActiveJob::Base - queue_as :lupo_background + queue_as :lupo_transfer # retry_on ActiveRecord::RecordNotFound, wait: 10.seconds, attempts: 3 # retry_on Faraday::TimeoutError, wait: 10.minutes, attempts: 3 diff --git a/config/shoryuken.yml b/config/shoryuken.yml index d7f72442d..6a0f7b387 100644 --- a/config/shoryuken.yml +++ b/config/shoryuken.yml @@ -5,7 +5,11 @@ queues: - lupo groups: + transfer: + concurrency: 3 + queues: + - lupo_transfer background: - concurrency: 5 + concurrency: 3 queues: - lupo_background