refactor(core): Include execution progress in save settings (no-changelog) (#7769)

This commit is contained in:
Iván Ovejero
2023-11-21 17:33:44 +01:00
committed by GitHub
parent 5bdfcb4224
commit 3459eb6c2f
4 changed files with 173 additions and 113 deletions

View File

@@ -358,18 +358,9 @@ export function hookFunctionsPreExecute(parentProcessMode?: string): IWorkflowEx
data: ITaskData,
executionData: IRunExecutionData,
): Promise<void> {
const saveExecutionProgress = config.getEnv('executions.saveExecutionProgress');
const workflowSettings = this.workflowData.settings;
if (workflowSettings !== undefined) {
if (workflowSettings.saveExecutionProgress === false) {
return;
}
if (workflowSettings.saveExecutionProgress !== true && !saveExecutionProgress) {
return;
}
} else if (!saveExecutionProgress) {
return;
}
const saveSettings = toSaveSettings(this.workflowData.settings);
if (!saveSettings.progress) return;
try {
logger.debug(