Skip to content

Commit

Permalink
pass worker config in pod
Browse files Browse the repository at this point in the history
  • Loading branch information
satishblotout authored and NejcZdovc committed Apr 16, 2021
1 parent 765a1f7 commit ccfc4a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/docker-bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fi

if [[ "${1}" == "worker" ]]; then
echo "Starting Celery worker..."
celery worker --app=superset.tasks.celery_app:app --pool=prefork -O fair -c 2 -l DEBUG
celery worker --app=superset.tasks.celery_app:app --pool=prefork -O fair -c ${CELERY_WORKERS} -l DEBUG
elif [[ "${1}" == "beat" ]]; then
echo "Starting Celery beat..."
celery beat --app=superset.tasks.celery_app:app -l DEBUG
Expand Down
4 changes: 2 additions & 2 deletions docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ else
--error-logfile '-' \
--workers ${GUNIOCORN_WORKERS} \
--worker-class gthread \
--threads 20 \
--timeout 60 \
--threads ${GUNIOCORN_THREADS} \
--timeout ${GUNIOCORN_TIMEOUT} \
--limit-request-line 0 \
--limit-request-field_size 0 \
"${FLASK_APP}"
Expand Down

0 comments on commit ccfc4a5

Please sign in to comment.