From cea8529baa3a4487870c08e7538a8dbd4c18913c Mon Sep 17 00:00:00 2001 From: Andrew Katz Date: Wed, 5 Apr 2017 14:15:14 -0700 Subject: [PATCH] Support no timeout --- lib/frenzy_bunnies/worker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/frenzy_bunnies/worker.rb b/lib/frenzy_bunnies/worker.rb index aafb6bc..de8aba1 100644 --- a/lib/frenzy_bunnies/worker.rb +++ b/lib/frenzy_bunnies/worker.rb @@ -29,7 +29,7 @@ def start(context) @queue_opts[:prefetch] ||= 10 @queue_opts[:durable] ||= false - @queue_opts[:timeout_job_after] ||=5 + @queue_opts[:timeout_job_after] = 5 if @queue_opts[:timeout_job_after].nil? @queue_opts[:handler] ||= FrenzyBunnies::Handlers::Oneshot if @queue_opts[:threads]