mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix(core): Align concurrency and timeout defaults between instance and runner (#12503)
This commit is contained in:
@@ -42,7 +42,7 @@ export class TaskRunnersConfig {
|
|||||||
/**
|
/**
|
||||||
* How many concurrent tasks can a runner execute at a time
|
* How many concurrent tasks can a runner execute at a time
|
||||||
*
|
*
|
||||||
* @note Kept high for backwards compatibility - n8n v2 will reduce this to `5`
|
* Kept high for backwards compatibility - n8n v2 will reduce this to `5`
|
||||||
*/
|
*/
|
||||||
@Env('N8N_RUNNERS_MAX_CONCURRENCY')
|
@Env('N8N_RUNNERS_MAX_CONCURRENCY')
|
||||||
maxConcurrency: number = 10;
|
maxConcurrency: number = 10;
|
||||||
@@ -52,7 +52,7 @@ export class TaskRunnersConfig {
|
|||||||
* task will be aborted. (In internal mode, the runner will also be
|
* task will be aborted. (In internal mode, the runner will also be
|
||||||
* restarted.) Must be greater than 0.
|
* restarted.) Must be greater than 0.
|
||||||
*
|
*
|
||||||
* @note Kept high for backwards compatibility - n8n v2 will reduce this to `60`
|
* Kept high for backwards compatibility - n8n v2 will reduce this to `60`
|
||||||
*/
|
*/
|
||||||
@Env('N8N_RUNNERS_TASK_TIMEOUT')
|
@Env('N8N_RUNNERS_TASK_TIMEOUT')
|
||||||
taskTimeout: number = 300; // 5 minutes
|
taskTimeout: number = 300; // 5 minutes
|
||||||
|
|||||||
@@ -23,8 +23,13 @@ export class BaseRunnerConfig {
|
|||||||
@Env('N8N_RUNNERS_MAX_PAYLOAD')
|
@Env('N8N_RUNNERS_MAX_PAYLOAD')
|
||||||
maxPayloadSize: number = 1024 * 1024 * 1024;
|
maxPayloadSize: number = 1024 * 1024 * 1024;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* How many concurrent tasks can a runner execute at a time
|
||||||
|
*
|
||||||
|
* Kept high for backwards compatibility - n8n v2 will reduce this to `5`
|
||||||
|
*/
|
||||||
@Env('N8N_RUNNERS_MAX_CONCURRENCY')
|
@Env('N8N_RUNNERS_MAX_CONCURRENCY')
|
||||||
maxConcurrency: number = 5;
|
maxConcurrency: number = 10;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* How long (in seconds) a runner may be idle for before exit. Intended
|
* How long (in seconds) a runner may be idle for before exit. Intended
|
||||||
@@ -37,8 +42,15 @@ export class BaseRunnerConfig {
|
|||||||
@Env('GENERIC_TIMEZONE')
|
@Env('GENERIC_TIMEZONE')
|
||||||
timezone: string = 'America/New_York';
|
timezone: string = 'America/New_York';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* How long (in seconds) a task is allowed to take for completion, else the
|
||||||
|
* task will be aborted. (In internal mode, the runner will also be
|
||||||
|
* restarted.) Must be greater than 0.
|
||||||
|
*
|
||||||
|
* Kept high for backwards compatibility - n8n v2 will reduce this to `60`
|
||||||
|
*/
|
||||||
@Env('N8N_RUNNERS_TASK_TIMEOUT')
|
@Env('N8N_RUNNERS_TASK_TIMEOUT')
|
||||||
taskTimeout: number = 60;
|
taskTimeout: number = 300; // 5 minutes
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
healthcheckServer!: HealthcheckServerConfig;
|
healthcheckServer!: HealthcheckServerConfig;
|
||||||
|
|||||||
Reference in New Issue
Block a user