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]