Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: kill signal is not passed to the main process (#6159)

Masashi Tomooka5236cb1888ab
diff --git a/api/docker/entrypoint.sh b/api/docker/entrypoint.sh
index e74c6c2406d..a53d84c6e9e 100755
--- a/api/docker/entrypoint.sh
+++ b/api/docker/entrypoint.sh
@@ -8,15 +8,15 @@ if [[ "${MIGRATION_ENABLED}" == "true" ]]; then
fi
if [[ "${MODE}" == "worker" ]]; then
- celery -A app.celery worker -P ${CELERY_WORKER_CLASS:-gevent} -c ${CELERY_WORKER_AMOUNT:-1} --loglevel INFO \
+ exec celery -A app.celery worker -P ${CELERY_WORKER_CLASS:-gevent} -c ${CELERY_WORKER_AMOUNT:-1} --loglevel INFO \
-Q ${CELERY_QUEUES:-dataset,generation,mail,ops_trace,app_deletion}
elif [[ "${MODE}" == "beat" ]]; then
- celery -A app.celery beat --loglevel INFO
+ exec celery -A app.celery beat --loglevel INFO
else
if [[ "${DEBUG}" == "true" ]]; then
- flask run --host=${DIFY_BIND_ADDRESS:-0.0.0.0} --port=${DIFY_PORT:-5001} --debug
+ exec flask run --host=${DIFY_BIND_ADDRESS:-0.0.0.0} --port=${DIFY_PORT:-5001} --debug
else
- gunicorn \
+ exec gunicorn \
--bind "${DIFY_BIND_ADDRESS:-0.0.0.0}:${DIFY_PORT:-5001}" \
--workers ${SERVER_WORKER_AMOUNT:-1} \
--worker-class ${SERVER_WORKER_CLASS:-gevent} \
@@ -24,4 +24,4 @@ else
--preload \
app:app
fi
-fi
\ No newline at end of file
+fi