mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
refactor(core): Port save settings (#18557)
This commit is contained in:
@@ -70,4 +70,20 @@ export class ExecutionsConfig {
|
||||
|
||||
@Nested
|
||||
queueRecovery: QueueRecoveryConfig;
|
||||
|
||||
/** Whether to save execution data for failed production executions. This default can be overridden at a workflow level. */
|
||||
@Env('EXECUTIONS_DATA_SAVE_ON_ERROR')
|
||||
saveDataOnError: 'all' | 'none' = 'all';
|
||||
|
||||
/** Whether to save execution data for successful production executions. This default can be overridden at a workflow level. */
|
||||
@Env('EXECUTIONS_DATA_SAVE_ON_SUCCESS')
|
||||
saveDataOnSuccess: 'all' | 'none' = 'all';
|
||||
|
||||
/** Whether to save execution data as each node executes. This default can be overridden at a workflow level. */
|
||||
@Env('EXECUTIONS_DATA_SAVE_ON_PROGRESS')
|
||||
saveExecutionProgress: boolean = false;
|
||||
|
||||
/** Whether to save execution data for manual executions. This default can be overridden at a workflow level. */
|
||||
@Env('EXECUTIONS_DATA_SAVE_MANUAL_EXECUTIONS')
|
||||
saveDataManualExecutions: boolean = true;
|
||||
}
|
||||
|
||||
@@ -318,6 +318,10 @@ describe('GlobalConfig', () => {
|
||||
interval: 180,
|
||||
batchSize: 100,
|
||||
},
|
||||
saveDataOnError: 'all',
|
||||
saveDataOnSuccess: 'all',
|
||||
saveExecutionProgress: false,
|
||||
saveDataManualExecutions: true,
|
||||
},
|
||||
diagnostics: {
|
||||
enabled: true,
|
||||
|
||||
Reference in New Issue
Block a user