Skip to content

Commit

Permalink
Attempting to resolve consumer issue with rabbitmq reconnections
Browse files Browse the repository at this point in the history
  • Loading branch information
naemono committed Nov 28, 2017
1 parent c987c5b commit 15a2626
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions taskflow/engines/worker_based/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ def _drain_errback(exc, interval):
self._running.set()
try:
while self._running.is_set():
# This seems to be required when failures occur in
# rabbitmq, as the consumer doesn't show up in rabbit
# as a valid consumer without it. (mmontgomery)
consumer.consume()
safe_drain(conn, self._drain_events_timeout)
if self._on_wait is not None:
self._on_wait()
Expand Down

0 comments on commit 15a2626

Please sign in to comment.