refactor(core): Track potentially unneeded inferral of execution status (no-changelog) (#9476)

This commit is contained in:
Iván Ovejero 2024-05-22 16:42:06 +02:00 committed by GitHub
parent fc83005ba0
commit 1cb6c12b4f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,6 +9,7 @@ import type {
ExecutionStatus,
} from 'n8n-workflow';
import {
ErrorReporterProxy as EventReporter,
ApplicationError,
ExecutionStatusList,
Workflow,
@ -106,6 +107,8 @@ export class ExecutionService {
}
if (!execution.status) {
const { data, workflowData, ...rest } = execution;
EventReporter.info('Detected `null` execution status', { extra: { execution: rest } });
execution.status = getStatusUsingPreviousExecutionStatusMethod(execution);
}