prevent redis connectionerror for async tasks

This commit is contained in:
Adarnof 2016-12-19 17:33:11 -05:00 committed by GitHub
parent a4a8852400
commit 8582584fd5

View File

@ -21,6 +21,7 @@ djcelery.setup_loader()
# Celery configuration
BROKER_URL = 'redis://localhost:6379/0'
CELERYBEAT_SCHEDULER = "djcelery.schedulers.DatabaseScheduler"
BROKER_POOL_LIMIT = 0
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))