From 9666537dd7f8ed474ceda896536d18c72ed6cdc7 Mon Sep 17 00:00:00 2001 From: Ultrabug Date: Tue, 18 Apr 2023 17:20:40 +0200 Subject: [PATCH 1/3] docs(environment-variables): make EXECUTIONS_TIMEOUT and EXECUTIONS_TIMEOUT_MAX more explicit EXECUTIONS_TIMEOUT and EXECUTIONS_TIMEOUT_MAX environment variables have a relationship that was not obvious on their documentation --- docs/hosting/environment-variables/environment-variables.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/hosting/environment-variables/environment-variables.md b/docs/hosting/environment-variables/environment-variables.md index c294b856e..18161c917 100644 --- a/docs/hosting/environment-variables/environment-variables.md +++ b/docs/hosting/environment-variables/environment-variables.md @@ -143,8 +143,8 @@ Refer to [User management](/hosting/authentication/user-management-self-hosted/) | :------- | :---- | :------- | :---------- | | `EXECUTIONS_PROCESS` | Enum string: `main`, `own` | `own` | Whether n8n executions run in their own process or the main process.

Refer to [Execution modes and processes](/hosting/scaling/execution-modes-processes/) for more details. | | `EXECUTIONS_MODE` | Enum string: `regular`, `queue` | `regular` | Whether executions should run directly or using queue.

Refer to [Execution modes and processes](/hosting/scaling/execution-modes-processes/) for more details. | -| `EXECUTIONS_TIMEOUT` | Number | `-1` | The maximum run time (in seconds) before stopping a workflow execution. Set to `-1` to disable. | -| `EXECUTIONS_TIMEOUT_MAX` | Number | `3600` | The maximum execution time (in seconds) for an individual workflow. | +| `EXECUTIONS_TIMEOUT` | Number | `-1` | Whether executions should be stopped after this maximum execution time (in seconds). Can be overriden per workflow up to `EXECUTIONS_TIMEOUT_MAX`. Set to `-1` to disable. | +| `EXECUTIONS_TIMEOUT_MAX` | Number | `3600` | The maximum execution time (in seconds) that can be configured for an individual workflow. | | `EXECUTIONS_DATA_SAVE_ON_ERROR` | Enum string: `all`, `none` | `all` | Whether n8n saves execution data on error. | | `EXECUTIONS_DATA_SAVE_ON_SUCCESS` | Enum string: `all`, `none` | `all` | Whether n8n saves execution data on success. | | `EXECUTIONS_DATA_SAVE_ON_PROGRESS` | Boolean | `false` | Whether to save progress for each node executed (true) or not (false). | From 4971634420ce12259c607fd4d4f3c9332869a3a0 Mon Sep 17 00:00:00 2001 From: Ultrabug Date: Wed, 19 Apr 2023 17:29:36 +0200 Subject: [PATCH 2/3] Update docs/hosting/environment-variables/environment-variables.md Co-authored-by: Deborah --- docs/hosting/environment-variables/environment-variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/hosting/environment-variables/environment-variables.md b/docs/hosting/environment-variables/environment-variables.md index 18161c917..fb7ab3c45 100644 --- a/docs/hosting/environment-variables/environment-variables.md +++ b/docs/hosting/environment-variables/environment-variables.md @@ -144,7 +144,7 @@ Refer to [User management](/hosting/authentication/user-management-self-hosted/) | `EXECUTIONS_PROCESS` | Enum string: `main`, `own` | `own` | Whether n8n executions run in their own process or the main process.

Refer to [Execution modes and processes](/hosting/scaling/execution-modes-processes/) for more details. | | `EXECUTIONS_MODE` | Enum string: `regular`, `queue` | `regular` | Whether executions should run directly or using queue.

Refer to [Execution modes and processes](/hosting/scaling/execution-modes-processes/) for more details. | | `EXECUTIONS_TIMEOUT` | Number | `-1` | Whether executions should be stopped after this maximum execution time (in seconds). Can be overriden per workflow up to `EXECUTIONS_TIMEOUT_MAX`. Set to `-1` to disable. | -| `EXECUTIONS_TIMEOUT_MAX` | Number | `3600` | The maximum execution time (in seconds) that can be configured for an individual workflow. | +| `EXECUTIONS_TIMEOUT_MAX` | Number | `3600` | The maximum execution time (in seconds) that users can set for an individual workflow. | | `EXECUTIONS_DATA_SAVE_ON_ERROR` | Enum string: `all`, `none` | `all` | Whether n8n saves execution data on error. | | `EXECUTIONS_DATA_SAVE_ON_SUCCESS` | Enum string: `all`, `none` | `all` | Whether n8n saves execution data on success. | | `EXECUTIONS_DATA_SAVE_ON_PROGRESS` | Boolean | `false` | Whether to save progress for each node executed (true) or not (false). | From 138caa4924eb3794b8811171c0458638a49ff7d3 Mon Sep 17 00:00:00 2001 From: Ultrabug Date: Wed, 19 Apr 2023 17:39:14 +0200 Subject: [PATCH 3/3] docs(environment-variables): updated EXECUTIONS_TIMEOUT description --- docs/hosting/environment-variables/environment-variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/hosting/environment-variables/environment-variables.md b/docs/hosting/environment-variables/environment-variables.md index fb7ab3c45..049dbf470 100644 --- a/docs/hosting/environment-variables/environment-variables.md +++ b/docs/hosting/environment-variables/environment-variables.md @@ -143,7 +143,7 @@ Refer to [User management](/hosting/authentication/user-management-self-hosted/) | :------- | :---- | :------- | :---------- | | `EXECUTIONS_PROCESS` | Enum string: `main`, `own` | `own` | Whether n8n executions run in their own process or the main process.

Refer to [Execution modes and processes](/hosting/scaling/execution-modes-processes/) for more details. | | `EXECUTIONS_MODE` | Enum string: `regular`, `queue` | `regular` | Whether executions should run directly or using queue.

Refer to [Execution modes and processes](/hosting/scaling/execution-modes-processes/) for more details. | -| `EXECUTIONS_TIMEOUT` | Number | `-1` | Whether executions should be stopped after this maximum execution time (in seconds). Can be overriden per workflow up to `EXECUTIONS_TIMEOUT_MAX`. Set to `-1` to disable. | +| `EXECUTIONS_TIMEOUT` | Number | `-1` | Sets a default timeout (in seconds) to all workflows after which n8n stops their execution. Users can override this for individual workflows up to the duration set in `EXECUTIONS_TIMEOUT_MAX`. Set `EXECUTIONS_TIMEOUT` to `-1` to disable. | | `EXECUTIONS_TIMEOUT_MAX` | Number | `3600` | The maximum execution time (in seconds) that users can set for an individual workflow. | | `EXECUTIONS_DATA_SAVE_ON_ERROR` | Enum string: `all`, `none` | `all` | Whether n8n saves execution data on error. | | `EXECUTIONS_DATA_SAVE_ON_SUCCESS` | Enum string: `all`, `none` | `all` | Whether n8n saves execution data on success. |