Skip to content

Commit

Permalink
Fixed secret key in the Celery workers
Browse files Browse the repository at this point in the history
+ Bumped version to 5.1.2
  • Loading branch information
Genarito committed Oct 7, 2023
1 parent e03b2ef commit c68d7bd
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
12 changes: 6 additions & 6 deletions docker-compose_dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ services:

# Celery worker for correlation analysis
correlation-analysis-worker:
image: omicsdatascience/multiomix:5.1.1-celery
image: omicsdatascience/multiomix:5.1.2-celery
restart: 'always'
depends_on:
- db
Expand All @@ -79,7 +79,7 @@ services:

# Celery worker for feature selection experiments
fs-experiments-worker:
image: omicsdatascience/multiomix:5.1.1-celery
image: omicsdatascience/multiomix:5.1.2-celery
restart: 'always'
depends_on:
- db
Expand All @@ -96,7 +96,7 @@ services:

# Celery worker for statistical validations and trained models
stats-worker:
image: omicsdatascience/multiomix:5.1.1-celery
image: omicsdatascience/multiomix:5.1.2-celery
restart: 'always'
depends_on:
- db
Expand All @@ -113,7 +113,7 @@ services:

# Celery worker for inference experiments
inference-worker:
image: omicsdatascience/multiomix:5.1.1-celery
image: omicsdatascience/multiomix:5.1.2-celery
restart: 'always'
depends_on:
- db
Expand All @@ -130,7 +130,7 @@ services:

# Celery worker for sync CGDSStudies
sync-datasets-worker:
image: omicsdatascience/multiomix:5.1.1-celery
image: omicsdatascience/multiomix:5.1.2-celery
restart: 'always'
depends_on:
- db
Expand All @@ -147,7 +147,7 @@ services:

# Django Backend Server
web:
image: omicsdatascience/multiomix:5.1.1
image: omicsdatascience/multiomix:5.1.2
restart: 'always'
# environment:
# ENABLE_SECURITY: 'true'
Expand Down
2 changes: 1 addition & 1 deletion src/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ echo "##############################################"
python3 ${BASE_DIR}/manage.py migrate

echo "##############################################"
echo "Running multiomics..."
echo "Running Multiomix..."
echo "##############################################"
echo ${LISTEN_IP}
echo ${LISTEN_PORT}
Expand Down
11 changes: 10 additions & 1 deletion src/entrypoint_celery.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
#!/bin/bash

# Starts a celery worker for the specific queue.
DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE:-"multiomics_intermediate.settings"}
echo "##############################################"
echo "Generate key..."
echo "##############################################"
python3 ${BASE_DIR}/manage.py generate_secret_key --settings="${DJANGO_SETTINGS_MODULE}"

# Starts a celery worker for the specific queue
echo "##############################################"
echo "Running Celery..."
echo "##############################################"
python3 -m celery -A multiomics_intermediate worker -l info -Q $QUEUE_NAME --concurrency $CONCURRENCY
2 changes: 1 addition & 1 deletion src/multiomics_intermediate/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
# +++++ Custom settings +++++

# Current Multiomix version
VERSION: str = '5.1.1'
VERSION: str = '5.1.2'

# Default primary key field type
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
Expand Down

0 comments on commit c68d7bd

Please sign in to comment.