Skip to content

Commit

Permalink
Added parameter to Docker entrypoint file to accept number of gunicor…
Browse files Browse the repository at this point in the history
…n workers (#281)
  • Loading branch information
stolpeo committed Jan 26, 2022
1 parent 7538557 commit 19b67f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ End-User Summary
Kiosk mode does not support GRCh38 yet.
**This is a breaking change, new data and CLI must be used!**
- Added feature to select multiple rows in results to create same annotation (#259)
- Added parameter to Docker entrypoint file to accept number of gunicorn workers

Full Change List
================
Expand Down Expand Up @@ -67,6 +68,7 @@ Full Change List
- ``import_info.tsv`` expected as in data release from ``20210728`` as built from varfish-db-downloader ``1b03e97`` or later.
- Extending columns of ``Hgnc`` to upstream update.
- Added feature to select multiple rows in results to create same annotation (#259)
- Added parameter to Docker entrypoint file to accept number of gunicorn workers

-------
v0.23.9
Expand Down
4 changes: 4 additions & 0 deletions docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ set -euo pipefail
# default: info
# GUNICORN_TIMEOUT -- timeout for gunicorn workers in seconds
# default: 600
# GUNICORN_WORKERS -- number of gunicorn workers
# default: 4

APP_DIR=${APP_DIR-/usr/src/app}
CELERY_QUEUES=${CELERY_QUEUES-default,query,import}
Expand All @@ -41,6 +43,7 @@ HTTP_HOST=${HTTP_HOST-0.0.0.0}
HTTP_PORT=${HTTP_PORT-8080}
LOG_LEVEL=${LOG_LEVEL-info}
GUNICORN_TIMEOUT=${GUNICORN_TIMEOUT-600}
GUNICORN_WORKERS=${GUNICORN_WORKERS-4}

if [[ "$NO_WAIT" -ne 1 ]]; then
/usr/local/bin/wait
Expand All @@ -65,6 +68,7 @@ if [[ "$1" == wsgi ]]; then
--log-level "$LOG_LEVEL" \
--bind "$HTTP_HOST:$HTTP_PORT" \
--timeout "$GUNICORN_TIMEOUT" \
--workers "$GUNICORN_WORKERS" \
config.wsgi
elif [[ "$1" == celeryd ]]; then
cd $APP_DIR
Expand Down

0 comments on commit 19b67f0

Please sign in to comment.