Add data clean schedule (#1859)

Co-authored-by: jyong <jyong@dify.ai>
This commit is contained in:
Jyong
2024-01-02 15:29:18 +08:00
committed by GitHub
parent 06d2d8cea3
commit 595e9b25ba
5 changed files with 124 additions and 1 deletions

View File

@@ -10,6 +10,8 @@ fi
if [[ "${MODE}" == "worker" ]]; then
celery -A app.celery worker -P ${CELERY_WORKER_CLASS:-gevent} -c ${CELERY_WORKER_AMOUNT:-1} --loglevel INFO \
-Q ${CELERY_QUEUES:-dataset,generation,mail}
elif [[ "${MODE}" == "beat" ]]; then
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