-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Redis backend update * Small redis tweaks --------- Co-authored-by: Katherine Fleming <[email protected]>
- Loading branch information
1 parent
a6a68e0
commit a5a2a9d
Showing
10 changed files
with
61 additions
and
118 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,28 +15,19 @@ Docker then you will not need to do this. | |
CELERY_RESULT_BACKEND = CELERY_BROKER_URL | ||
If you are using a password, then in your local_untracked.py configuration, add the password to | ||
the CACHES configuration option. Your final configuration should look like the following in your | ||
the CELERY_BROKER_URL. Your final configuration should look like the following in your | ||
local_untracked.py file | ||
|
||
.. code-block:: python | ||
CELERY_BROKER_URL = 'redis://:[email protected]:6379/1' | ||
CACHES = { | ||
'default': { | ||
'BACKEND': 'redis_cache.cache.RedisCache', | ||
'LOCATION': "127.0.0.1:6379", | ||
'OPTIONS': { | ||
'DB': 1, | ||
'PASSWORD': 'password', | ||
}, | ||
'TIMEOUT': 300 | ||
'BACKEND': 'django_redis.cache.RedisCache', | ||
'LOCATION': CELERY_BROKER_URL, | ||
} | ||
} | ||
CELERY_BROKER_URL = 'redis://:%s@%s/%s' % ( | ||
CACHES['default']['OPTIONS']['PASSWORD'], | ||
CACHES['default']['LOCATION'], | ||
CACHES['default']['OPTIONS']['DB'] | ||
) | ||
CELERY_RESULT_BACKEND = CELERY_BROKER_URL | ||
CELERY_TASK_DEFAULT_QUEUE = 'seed-local' | ||
CELERY_TASK_QUEUES = ( | ||
|
This file contains 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
This file contains 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