mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor(core): Port queue recovery config (#18396)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -314,6 +314,10 @@ describe('GlobalConfig', () => {
|
||||
productionLimit: -1,
|
||||
evaluationLimit: -1,
|
||||
},
|
||||
queueRecovery: {
|
||||
interval: 180,
|
||||
batchSize: 100,
|
||||
},
|
||||
},
|
||||
diagnostics: {
|
||||
enabled: true,
|
||||
|
||||
Reference in New Issue
Block a user