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.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix celery config (#22566)
kenwoodjw61a5741c05cf
diff --git a/api/.env.example b/api/.env.exampleindex b8976e5b170..6ead14e9b0e 100644--- a/api/.env.example+++ b/api/.env.example@@ -54,7 +54,7 @@ REDIS_CLUSTERS_PASSWORD=# celery configurationCELERY_BROKER_URL=redis://:difyai123456@localhost:${REDIS_PORT}/1-+CELERY_BACKEND=redis# PostgreSQL database configurationDB_USERNAME=postgresDB_PASSWORD=difyai123456diff --git a/api/configs/middleware/__init__.py b/api/configs/middleware/__init__.pyindex 0c0c06dd464..3c349060cac 100644--- a/api/configs/middleware/__init__.py+++ b/api/configs/middleware/__init__.py@@ -211,7 +211,7 @@ class DatabaseConfig(BaseSettings):class CeleryConfig(DatabaseConfig):CELERY_BACKEND: str = Field(description="Backend for Celery task results. Options: 'database', 'redis'.",- default="database",+ default="redis",)CELERY_BROKER_URL: Optional[str] = Field(diff --git a/docker/.env.example b/docker/.env.exampleindex 1842239b53a..a05141569b1 100644--- a/docker/.env.example+++ b/docker/.env.example@@ -289,6 +289,7 @@ REDIS_CLUSTERS_PASSWORD=# If use Redis Sentinel, format as follows: `sentinel://<sentinel_username>:<sentinel_password>@<sentinel_host>:<sentinel_port>/<redis_database>`# Example: sentinel://localhost:26379/1;sentinel://localhost:26380/1;sentinel://localhost:26381/1CELERY_BROKER_URL=redis://:difyai123456@redis:6379/1+CELERY_BACKEND=redisBROKER_USE_SSL=false# If you are using Redis Sentinel for high availability, configure the following settings.diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yamlindex 723780d153e..5962adb0799 100644--- a/docker/docker-compose.yaml+++ b/docker/docker-compose.yaml@@ -79,6 +79,7 @@ x-shared-env: &shared-api-worker-envREDIS_CLUSTERS: ${REDIS_CLUSTERS:-}REDIS_CLUSTERS_PASSWORD: ${REDIS_CLUSTERS_PASSWORD:-}CELERY_BROKER_URL: ${CELERY_BROKER_URL:-redis://:difyai123456@redis:6379/1}+ CELERY_BACKEND: ${CELERY_BACKEND:-redis}BROKER_USE_SSL: ${BROKER_USE_SSL:-false}CELERY_USE_SENTINEL: ${CELERY_USE_SENTINEL:-false}CELERY_SENTINEL_MASTER_NAME: ${CELERY_SENTINEL_MASTER_NAME:-}