|
@@ -277,6 +277,10 @@ class Consumer(object):
|
|
try:
|
|
try:
|
|
blueprint.start(self)
|
|
blueprint.start(self)
|
|
except self.connection_errors as exc:
|
|
except self.connection_errors as exc:
|
|
|
|
+ # If we're not retrying connections, no need to catch
|
|
|
|
+ # connection errors
|
|
|
|
+ if not self.app.conf.BROKER_CONNECTION_RETRY:
|
|
|
|
+ raise
|
|
if isinstance(exc, OSError) and exc.errno == errno.EMFILE:
|
|
if isinstance(exc, OSError) and exc.errno == errno.EMFILE:
|
|
raise # Too many open files
|
|
raise # Too many open files
|
|
maybe_shutdown()
|
|
maybe_shutdown()
|