refactor(core): Port queue recovery config (#18396)

This commit is contained in:
Iván Ovejero
2025-08-18 09:08:03 +02:00
committed by GitHub
parent 18e32fe774
commit 58aad35592
5 changed files with 26 additions and 18 deletions

View File

@@ -26,6 +26,17 @@ class ConcurrencyConfig {
evaluationLimit: number = -1;
}
@Config
class QueueRecoveryConfig {
/** How often (minutes) to check for queue recovery. */
@Env('N8N_EXECUTIONS_QUEUE_RECOVERY_INTERVAL')
interval: number = 180;
/** Size of batch of executions to check for queue recovery. */
@Env('N8N_EXECUTIONS_QUEUE_RECOVERY_BATCH')
batchSize: number = 100;
}
@Config
export class ExecutionsConfig {
/** Whether to delete past executions on a rolling basis. */
@@ -56,4 +67,7 @@ export class ExecutionsConfig {
@Nested
concurrency: ConcurrencyConfig;
@Nested
queueRecovery: QueueRecoveryConfig;
}

View File

@@ -314,6 +314,10 @@ describe('GlobalConfig', () => {
productionLimit: -1,
evaluationLimit: -1,
},
queueRecovery: {
interval: 180,
batchSize: 100,
},
},
diagnostics: {
enabled: true,