mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor(core): Port timeout config (#18722)
This commit is contained in:
@@ -39,6 +39,18 @@ class QueueRecoveryConfig {
|
||||
|
||||
@Config
|
||||
export class ExecutionsConfig {
|
||||
/**
|
||||
* How long (seconds) a workflow execution may run for before timeout.
|
||||
* On timeout, the execution will be forcefully stopped. `-1` for unlimited.
|
||||
* Currently unlimited by default - this default will change in a future version.
|
||||
*/
|
||||
@Env('EXECUTIONS_TIMEOUT')
|
||||
timeout: number = -1;
|
||||
|
||||
/** How long (seconds) a workflow execution may run for at most. */
|
||||
@Env('EXECUTIONS_TIMEOUT_MAX')
|
||||
maxTimeout: number = 3600; // 1h
|
||||
|
||||
/** Whether to delete past executions on a rolling basis. */
|
||||
@Env('EXECUTIONS_DATA_PRUNE')
|
||||
pruneData: boolean = true;
|
||||
|
||||
@@ -302,6 +302,8 @@ describe('GlobalConfig', () => {
|
||||
disableWebhookHtmlSandboxing: false,
|
||||
},
|
||||
executions: {
|
||||
timeout: -1,
|
||||
maxTimeout: 3600,
|
||||
pruneData: true,
|
||||
pruneDataMaxAge: 336,
|
||||
pruneDataMaxCount: 10_000,
|
||||
|
||||
Reference in New Issue
Block a user