Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Metagenomics
metagenedb
Commits
ccc8aa99
Commit
ccc8aa99
authored
Mar 20, 2020
by
Kenzo-Hugo Hillion
♻
Browse files
add more dependencies
parent
a17d3966
Pipeline
#26197
passed with stages
in 3 minutes and 14 seconds
Changes
3
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
backend/Pipfile
View file @
ccc8aa99
...
...
@@ -64,6 +64,8 @@ gunicorn = "*"
pyfastx
=
"*"
celery
=
"*"
redis
=
"*"
django-health-check
=
"==3.0.0"
django-redis
=
"*"
[requires]
python_version
=
"3.7"
backend/Pipfile.lock
View file @
ccc8aa99
This diff is collapsed.
Click to expand it.
backend/metagenedb/settings/celery.py
View file @
ccc8aa99
# 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"
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment