Skip to content

Commit

Permalink
fix: use LOG_LEVEL for celery startup (#7628)
Browse files Browse the repository at this point in the history
  • Loading branch information
erigo authored Aug 26, 2024
1 parent 17fd773 commit 8dfdb37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ if [[ "${MODE}" == "worker" ]]; then
CONCURRENCY_OPTION="-c ${CELERY_WORKER_AMOUNT:-1}"
fi

exec celery -A app.celery worker -P ${CELERY_WORKER_CLASS:-gevent} $CONCURRENCY_OPTION --loglevel INFO \
exec celery -A app.celery worker -P ${CELERY_WORKER_CLASS:-gevent} $CONCURRENCY_OPTION --loglevel ${LOG_LEVEL} \
-Q ${CELERY_QUEUES:-dataset,generation,mail,ops_trace,app_deletion}

elif [[ "${MODE}" == "beat" ]]; then
exec celery -A app.celery beat --loglevel INFO
exec celery -A app.celery beat --loglevel ${LOG_LEVEL}
else
if [[ "${DEBUG}" == "true" ]]; then
exec flask run --host=${DIFY_BIND_ADDRESS:-0.0.0.0} --port=${DIFY_PORT:-5001} --debug
Expand Down

0 comments on commit 8dfdb37

Please sign in to comment.