From f98f0213a95ceb0bad278c035f32578e1dbd9384 Mon Sep 17 00:00:00 2001 From: Mattias Pfeiffer Date: Sun, 3 May 2020 10:57:00 +0200 Subject: [PATCH] Concurrency: Suo parameter is called :acquisition_timeout, not :acquisition_lock. --- lib/active_job/traffic_control/concurrency.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/active_job/traffic_control/concurrency.rb b/lib/active_job/traffic_control/concurrency.rb index 894457c..b3e2fe5 100644 --- a/lib/active_job/traffic_control/concurrency.rb +++ b/lib/active_job/traffic_control/concurrency.rb @@ -34,7 +34,7 @@ def concurrency_lock_key(job) if self.class.job_concurrency.present? lock_options = { resources: self.class.job_concurrency[:threshold], - acquisition_lock: self.class.job_concurrency[:wait_timeout], + acquisition_timeout: self.class.job_concurrency[:wait_timeout], stale_lock_expiration: self.class.job_concurrency[:stale_timeout] }