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
chore: disable postgres timeouts for docker workflows (#27397)
-LAN-dc7ce125ad0f
diff --git a/docker/.env.example b/docker/.env.exampleindex ca580dcb79a..cbf9cbb9128 100644--- a/docker/.env.example+++ b/docker/.env.example@@ -260,16 +260,18 @@ POSTGRES_MAINTENANCE_WORK_MEM=64MBPOSTGRES_EFFECTIVE_CACHE_SIZE=4096MB# Sets the maximum allowed duration of any statement before termination.-# Default is 60000 milliseconds.+# Default is 0 (no timeout).## Reference: https://www.postgresql.org/docs/current/runtime-config-client.html#GUC-STATEMENT-TIMEOUT-POSTGRES_STATEMENT_TIMEOUT=60000+# A value of 0 prevents the server from timing out statements.+POSTGRES_STATEMENT_TIMEOUT=0# Sets the maximum allowed duration of any idle in-transaction session before termination.-# Default is 60000 milliseconds.+# Default is 0 (no timeout).## Reference: https://www.postgresql.org/docs/current/runtime-config-client.html#GUC-IDLE-IN-TRANSACTION-SESSION-TIMEOUT-POSTGRES_IDLE_IN_TRANSACTION_SESSION_TIMEOUT=60000+# A value of 0 prevents the server from terminating idle sessions.+POSTGRES_IDLE_IN_TRANSACTION_SESSION_TIMEOUT=0# ------------------------------# Redis Configurationdiff --git a/docker/docker-compose-template.yaml b/docker/docker-compose-template.yamlindex 9650be90db5..886335a96bd 100644--- a/docker/docker-compose-template.yaml+++ b/docker/docker-compose-template.yaml@@ -115,8 +115,8 @@ services:-c 'work_mem=${POSTGRES_WORK_MEM:-4MB}'-c 'maintenance_work_mem=${POSTGRES_MAINTENANCE_WORK_MEM:-64MB}'-c 'effective_cache_size=${POSTGRES_EFFECTIVE_CACHE_SIZE:-4096MB}'- -c 'statement_timeout=${POSTGRES_STATEMENT_TIMEOUT:-60000}'- -c 'idle_in_transaction_session_timeout=${POSTGRES_IDLE_IN_TRANSACTION_SESSION_TIMEOUT:-60000}'+ -c 'statement_timeout=${POSTGRES_STATEMENT_TIMEOUT:-0}'+ -c 'idle_in_transaction_session_timeout=${POSTGRES_IDLE_IN_TRANSACTION_SESSION_TIMEOUT:-0}'volumes:- ./volumes/db/data:/var/lib/postgresql/datahealthcheck:diff --git a/docker/docker-compose.middleware.yaml b/docker/docker-compose.middleware.yamlindex 9a1b9b53ba0..0497e9d1f6d 100644--- a/docker/docker-compose.middleware.yaml+++ b/docker/docker-compose.middleware.yaml@@ -15,8 +15,8 @@ services:-c 'work_mem=${POSTGRES_WORK_MEM:-4MB}'-c 'maintenance_work_mem=${POSTGRES_MAINTENANCE_WORK_MEM:-64MB}'-c 'effective_cache_size=${POSTGRES_EFFECTIVE_CACHE_SIZE:-4096MB}'- -c 'statement_timeout=${POSTGRES_STATEMENT_TIMEOUT:-60000}'- -c 'idle_in_transaction_session_timeout=${POSTGRES_IDLE_IN_TRANSACTION_SESSION_TIMEOUT:-60000}'+ -c 'statement_timeout=${POSTGRES_STATEMENT_TIMEOUT:-0}'+ -c 'idle_in_transaction_session_timeout=${POSTGRES_IDLE_IN_TRANSACTION_SESSION_TIMEOUT:-0}'volumes:- ${PGDATA_HOST_VOLUME:-./volumes/db/data}:/var/lib/postgresql/dataports:diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yamlindex d2ca6b859ee..a18138509c6 100644--- a/docker/docker-compose.yaml+++ b/docker/docker-compose.yaml@@ -68,8 +68,8 @@ x-shared-env: &shared-api-worker-envPOSTGRES_WORK_MEM: ${POSTGRES_WORK_MEM:-4MB}POSTGRES_MAINTENANCE_WORK_MEM: ${POSTGRES_MAINTENANCE_WORK_MEM:-64MB}POSTGRES_EFFECTIVE_CACHE_SIZE: ${POSTGRES_EFFECTIVE_CACHE_SIZE:-4096MB}- POSTGRES_STATEMENT_TIMEOUT: ${POSTGRES_STATEMENT_TIMEOUT:-60000}- POSTGRES_IDLE_IN_TRANSACTION_SESSION_TIMEOUT: ${POSTGRES_IDLE_IN_TRANSACTION_SESSION_TIMEOUT:-60000}+ POSTGRES_STATEMENT_TIMEOUT: ${POSTGRES_STATEMENT_TIMEOUT:-0}+ POSTGRES_IDLE_IN_TRANSACTION_SESSION_TIMEOUT: ${POSTGRES_IDLE_IN_TRANSACTION_SESSION_TIMEOUT:-0}REDIS_HOST: ${REDIS_HOST:-redis}REDIS_PORT: ${REDIS_PORT:-6379}REDIS_USERNAME: ${REDIS_USERNAME:-}@@ -724,8 +724,8 @@ services:-c 'work_mem=${POSTGRES_WORK_MEM:-4MB}'-c 'maintenance_work_mem=${POSTGRES_MAINTENANCE_WORK_MEM:-64MB}'-c 'effective_cache_size=${POSTGRES_EFFECTIVE_CACHE_SIZE:-4096MB}'- -c 'statement_timeout=${POSTGRES_STATEMENT_TIMEOUT:-60000}'- -c 'idle_in_transaction_session_timeout=${POSTGRES_IDLE_IN_TRANSACTION_SESSION_TIMEOUT:-60000}'+ -c 'statement_timeout=${POSTGRES_STATEMENT_TIMEOUT:-0}'+ -c 'idle_in_transaction_session_timeout=${POSTGRES_IDLE_IN_TRANSACTION_SESSION_TIMEOUT:-0}'volumes:- ./volumes/db/data:/var/lib/postgresql/datahealthcheck:diff --git a/docker/middleware.env.example b/docker/middleware.env.exampleindex c9bb8c05287..24629c2d891 100644--- a/docker/middleware.env.example+++ b/docker/middleware.env.example@@ -41,16 +41,18 @@ POSTGRES_MAINTENANCE_WORK_MEM=64MBPOSTGRES_EFFECTIVE_CACHE_SIZE=4096MB# Sets the maximum allowed duration of any statement before termination.-# Default is 60000 milliseconds.+# Default is 0 (no timeout).## Reference: https://www.postgresql.org/docs/current/runtime-config-client.html#GUC-STATEMENT-TIMEOUT-POSTGRES_STATEMENT_TIMEOUT=60000+# A value of 0 prevents the server from timing out statements.+POSTGRES_STATEMENT_TIMEOUT=0# Sets the maximum allowed duration of any idle in-transaction session before termination.-# Default is 60000 milliseconds.+# Default is 0 (no timeout).## Reference: https://www.postgresql.org/docs/current/runtime-config-client.html#GUC-IDLE-IN-TRANSACTION-SESSION-TIMEOUT-POSTGRES_IDLE_IN_TRANSACTION_SESSION_TIMEOUT=60000+# A value of 0 prevents the server from terminating idle sessions.+POSTGRES_IDLE_IN_TRANSACTION_SESSION_TIMEOUT=0# -----------------------------# Environment Variables for redis Service