From 11622a5d2d4717b797f124382059be82e91c0aca Mon Sep 17 00:00:00 2001 From: Yury Kossakovsky Date: Tue, 9 Dec 2025 17:34:20 -0700 Subject: [PATCH] chore: update env example for worker-runner sidecar pattern remove N8N_RUNNER_COUNT (now 1:1 with workers), add OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS setting, clarify that generate_n8n_workers.sh should be run after changing count. --- .env.example | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.env.example b/.env.example index 67752a6..5b2c0e2 100644 --- a/.env.example +++ b/.env.example @@ -177,11 +177,15 @@ RUN_N8N_IMPORT= # n8n configuration ############ -# Number of n8n worker replicas (for the n8n-worker service). Defaults to 1 if unset. -N8N_WORKER_COUNT= +# Number of n8n worker-runner pairs to generate. +# Each worker gets its own dedicated task runner sidecar. +# After changing, run: bash scripts/generate_n8n_workers.sh +# Defaults to 1 if unset. +N8N_WORKER_COUNT=1 -# Number of n8n task runner replicas (for Code/Python node execution). Defaults to 1 if unset. -N8N_RUNNER_COUNT= +# Enable offloading manual executions to workers (recommended for production). +# When true, the main n8n instance does not execute workflows, only coordinates. +OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS=true # Maximum number of concurrent Code node executions per task runner. Defaults to 5. N8N_RUNNERS_MAX_CONCURRENCY=5