Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion kombu/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,11 +444,14 @@ def _ensure_connection(

def on_error(exc, intervals, retries, interval=0):
round = self.completes_cycle(retries)
# NOTE(arnaud/OVH) we changed this to select next host
# before going down to errback, because errback was raising
# a TimeoutError, preventing the retry to cycle through hosts
self.maybe_switch_next() # select next host
if round:
interval = next(intervals)
if errback:
errback(exc, interval)
self.maybe_switch_next() # select next host

return interval if round else 0

Expand Down