mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(core): Align concurrency and timeout defaults between instance and runner (#12503)
This commit is contained in:
parent
3ea592ecc9
commit
9953477450
|
@ -42,7 +42,7 @@ export class TaskRunnersConfig {
|
|||
/**
|
||||
* 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')
|
||||
maxConcurrency: number = 10;
|
||||
|
@ -52,7 +52,7 @@ export class TaskRunnersConfig {
|
|||
* task will be aborted. (In internal mode, the runner will also be
|
||||
* 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')
|
||||
taskTimeout: number = 300; // 5 minutes
|
||||
|
|
|
@ -23,8 +23,13 @@ export class BaseRunnerConfig {
|
|||
@Env('N8N_RUNNERS_MAX_PAYLOAD')
|
||||
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')
|
||||
maxConcurrency: number = 5;
|
||||
maxConcurrency: number = 10;
|
||||
|
||||
/**
|
||||
* How long (in seconds) a runner may be idle for before exit. Intended
|
||||
|
@ -37,8 +42,15 @@ export class BaseRunnerConfig {
|
|||
@Env('GENERIC_TIMEZONE')
|
||||
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')
|
||||
taskTimeout: number = 60;
|
||||
taskTimeout: number = 300; // 5 minutes
|
||||
|
||||
@Nested
|
||||
healthcheckServer!: HealthcheckServerConfig;
|
||||
|
|
Loading…
Reference in a new issue