From: Bryan Date: Sat, 24 Jan 2015 07:37:23 +0000 (-0500) Subject: possible fix for #392 X-Git-Tag: release-20150131~5 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5be27c8c2f1106cf02e2bfaf88353289e3faa476;p=oweals%2Fkarmaworld.git possible fix for #392 --- diff --git a/karmaworld/settings/prod.py b/karmaworld/settings/prod.py index ab26094..b83cb9b 100644 --- a/karmaworld/settings/prod.py +++ b/karmaworld/settings/prod.py @@ -69,10 +69,13 @@ BROKER_TRANSPORT = 'amqplib' # connections total. # # See: http://docs.celeryproject.org/en/latest/configuration.html#broker-pool-limit -BROKER_POOL_LIMIT = 1 +# See: https://github.com/FinalsClub/karmaworld/issues/392 +# See: http://stackoverflow.com/questions/23249850/celery-cloudamqp-creates-new-connection-for-each-task +# Basically, the broker pool causes too many connections! +BROKER_POOL_LIMIT = 0 # See: http://docs.celeryproject.org/en/latest/configuration.html#broker-connection-max-retries -BROKER_CONNECTION_MAX_RETRIES = 0 +#BROKER_CONNECTION_MAX_RETRIES = 0 # See: http://docs.celeryproject.org/en/latest/configuration.html#broker-url BROKER_URL = environ.get('RABBITMQ_URL') or environ.get('CLOUDAMQP_URL')