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.

Sync celery queue name list (#27554)

Eric Guo42385f3ffa9f
diff --git a/.gitignore b/.gitignore
index 22a2c425663..76cfd7d9bff 100644
--- a/.gitignore
+++ b/.gitignore
@@ -97,6 +97,7 @@ __pypackages__/
# Celery stuff
celerybeat-schedule
+celerybeat-schedule.db
celerybeat.pid
# SageMath parsed files
diff --git a/.vscode/launch.json.template b/.vscode/launch.json.template
index f5a7f0893bc..bf04d31998d 100644
--- a/.vscode/launch.json.template
+++ b/.vscode/launch.json.template
@@ -40,7 +40,7 @@
"-c",
"1",
"-Q",
- "dataset,generation,mail,ops_trace",
+ "dataset,mail,ops_trace,app_deletion,plugin,workflow_storage,conversation,priority_pipeline,pipeline",
"--loglevel",
"INFO"
],
diff --git a/api/.vscode/launch.json.example b/api/.vscode/launch.json.example
index b9e32e2511a..e97828f9d8b 100644
--- a/api/.vscode/launch.json.example
+++ b/api/.vscode/launch.json.example
@@ -54,7 +54,7 @@
"--loglevel",
"DEBUG",
"-Q",
- "dataset,generation,mail,ops_trace,app_deletion"
+ "dataset,mail,ops_trace,app_deletion,plugin,workflow_storage,conversation,priority_pipeline,pipeline"
]
}
]
diff --git a/api/README.md b/api/README.md
index ea6f547a0a4..fc21158c7aa 100644
--- a/api/README.md
+++ b/api/README.md
@@ -80,7 +80,7 @@
1. If you need to handle and debug the async tasks (e.g. dataset importing and documents indexing), please start the worker service.
```bash
-uv run celery -A app.celery worker -P gevent -c 2 --loglevel INFO -Q dataset,priority_pipeline,pipeline,mail,ops_trace,app_deletion,plugin,workflow_storage,conversation
+uv run celery -A app.celery worker -P gevent -c 2 --loglevel INFO -Q dataset,mail,ops_trace,app_deletion,plugin,workflow_storage,conversation,priority_pipeline,pipeline
```
Additionally, if you want to debug the celery scheduled tasks, you can run the following command in another terminal to start the beat service:
diff --git a/api/docker/entrypoint.sh b/api/docker/entrypoint.sh
index 798113af686..8f6998119ec 100755
--- a/api/docker/entrypoint.sh
+++ b/api/docker/entrypoint.sh
@@ -32,7 +32,7 @@ if [[ "${MODE}" == "worker" ]]; then
exec celery -A celery_entrypoint.celery worker -P ${CELERY_WORKER_CLASS:-gevent} $CONCURRENCY_OPTION \
--max-tasks-per-child ${MAX_TASKS_PER_CHILD:-50} --loglevel ${LOG_LEVEL:-INFO} \
- -Q ${CELERY_QUEUES:-dataset,priority_pipeline,pipeline,mail,ops_trace,app_deletion,plugin,workflow_storage,conversation} \
+ -Q ${CELERY_QUEUES:-dataset,mail,ops_trace,app_deletion,plugin,workflow_storage,conversation,priority_pipeline,pipeline} \
--prefetch-multiplier=1
elif [[ "${MODE}" == "beat" ]]; then
diff --git a/dev/start-worker b/dev/start-worker
index a7f16b853fb..83d7bf0f3c7 100755
--- a/dev/start-worker
+++ b/dev/start-worker
@@ -7,4 +7,4 @@ cd "$SCRIPT_DIR/.."
uv --directory api run \
celery -A app.celery worker \
- -P gevent -c 1 --loglevel INFO -Q dataset,generation,mail,ops_trace,app_deletion,plugin,workflow_storage,conversation,priority_pipeline,pipeline
+ -P gevent -c 1 --loglevel INFO -Q dataset,mail,ops_trace,app_deletion,plugin,workflow_storage,conversation,priority_pipeline,pipeline