refactor(core): Port save settings (#18557)

This commit is contained in:
Iván Ovejero
2025-08-20 09:49:54 +02:00
committed by GitHub
parent 3d2e165ac5
commit c4abc45ddb
7 changed files with 67 additions and 79 deletions

View File

@@ -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;
}

View File

@@ -318,6 +318,10 @@ describe('GlobalConfig', () => {
interval: 180,
batchSize: 100,
},
saveDataOnError: 'all',
saveDataOnSuccess: 'all',
saveExecutionProgress: false,
saveDataManualExecutions: true,
},
diagnostics: {
enabled: true,