Skip to content

Commit

Permalink
Merge pull request #1 from objectrocket/consumer-reconnect
Browse files Browse the repository at this point in the history
Attempting to resolve consumer issue with rabbitmq reconnections
  • Loading branch information
naemono authored Nov 28, 2017
2 parents c987c5b + 15a2626 commit 17fe7ae
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 17fe7ae

Please sign in to comment.