mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 21:07:28 -08:00
refactor(core): Track potentially unneeded inferral of execution status (no-changelog) (#9476)
This commit is contained in:
parent
fc83005ba0
commit
1cb6c12b4f
|
@ -9,6 +9,7 @@ import type {
|
||||||
ExecutionStatus,
|
ExecutionStatus,
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
import {
|
import {
|
||||||
|
ErrorReporterProxy as EventReporter,
|
||||||
ApplicationError,
|
ApplicationError,
|
||||||
ExecutionStatusList,
|
ExecutionStatusList,
|
||||||
Workflow,
|
Workflow,
|
||||||
|
@ -106,6 +107,8 @@ export class ExecutionService {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!execution.status) {
|
if (!execution.status) {
|
||||||
|
const { data, workflowData, ...rest } = execution;
|
||||||
|
EventReporter.info('Detected `null` execution status', { extra: { execution: rest } });
|
||||||
execution.status = getStatusUsingPreviousExecutionStatusMethod(execution);
|
execution.status = getStatusUsingPreviousExecutionStatusMethod(execution);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue