Commit ccc8aa99 authored by Kenzo-Hugo Hillion's avatar Kenzo-Hugo Hillion
Browse files

add more dependencies

parent a17d3966
Pipeline #26197 passed with stages
in 3 minutes and 14 seconds
......@@ -64,6 +64,8 @@ gunicorn = "*"
pyfastx = "*"
celery = "*"
redis = "*"
django-health-check = "==3.0.0"
django-redis = "*"
[requires]
python_version = "3.7"
This diff is collapsed.
# Celery Configuration
import os
CELERY_BROKER_URL = 'redis://redis:6379'
CELERY_RESULT_BACKEND = 'redis://redis:6379'
# REDIS
REDIS_URL = "redis://{host}:{port}/1".format(
host=os.getenv('REDIS_HOST', 'redis'),
port=os.getenv('REDIS_PORT', '6379')
)
# CELERY
CELERY_BROKER_URL = REDIS_URL
CELERY_RESULT_BACKEND = REDIS_URL
CELERY_ACCEPT_CONTENT = ['application/json']
CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'
CELERY_TASK_SERIALIZER = 'json'
# CACHE
CACHES = {
"default": {
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": REDIS_URL,
"OPTIONS": {
"CLIENT_CLASS": "django_redis.client.DefaultClient"
},
"KEY_PREFIX": "example"
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment