Created
January 14, 2016 15:56
-
-
Save ma1onso/e0cc2988525bb0582df4 to your computer and use it in GitHub Desktop.
Celery and Redis config in Django settings.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Celery | |
BROKER_URL = "redis://127.0.0.1:6379/0" | |
CELERY_SEND_EVENTS = True | |
CELERY_RESULT_BACKEND = 'redis://127.0.0.1:6379/0' | |
# CELERY_TASK_RESULT_EXPIRES = 60 | |
CELERY_ACCEPT_CONTENT = ['pickle', 'json', 'msgpack', 'yaml'] | |
CELERY_IMPORTS = ( | |
'another_module_with_task', | |
) | |
CELERYD_CONCURRENCY = 1 | |
# Redis setup | |
REDIS_HOST = "127.0.0.1" | |
REDIS_PORT = 6379 | |
REDIS_DB = 0 | |
REDIS_CONNECT_RETRY = True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment