From 5be27c8c2f1106cf02e2bfaf88353289e3faa476 Mon Sep 17 00:00:00 2001 From: Bryan Date: Sat, 24 Jan 2015 02:37:23 -0500 Subject: [PATCH] possible fix for #392 --- karmaworld/settings/prod.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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') -- 2.25.1