File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -239,24 +239,6 @@ def reconnect
239
239
end
240
240
end
241
241
242
- # Reconnect to Redis to avoid sharing a connection with the parent,
243
- # retry up to 3 times with increasing delay before giving up.
244
- def reconnect
245
- tries = 0
246
- begin
247
- redis . client . reconnect
248
- rescue Redis ::BaseConnectionError
249
- if ( tries += 1 ) <= 3
250
- Resque . logger . info "Error reconnecting to Redis; retrying"
251
- sleep ( tries )
252
- retry
253
- else
254
- Resque . logger . info "Error reconnecting to Redis; quitting"
255
- raise
256
- end
257
- end
258
- end
259
-
260
242
# Returns a list of queues to use when searching for a job.
261
243
# A splat ("*") means you want every queue (in alpha order) - this
262
244
# can be useful for dynamically adding new queues. Low priority queues
You can’t perform that action at this time.
0 commit comments