Skip to content

Commit 86caef5

Browse files
authored
Update queue.rb
Increase the timeout of the redis connection from 1 seconds to 10 seconds
1 parent b8c52a9 commit 86caef5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rspecq/queue.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class Queue
7979
def initialize(build_id, worker_id, redis_opts)
8080
@build_id = build_id
8181
@worker_id = worker_id
82-
@redis = Redis.new(redis_opts.merge(id: worker_id))
82+
@redis = Redis.new(redis_opts.merge(id: worker_id), timeout: 10)
8383
end
8484

8585
# NOTE: jobs will be processed from head to tail (lpop)

0 commit comments

Comments
 (0)