refactor(core): Couple of refactors on WorkflowRunner and ActiveExecutions (no-changelog) (#8487)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ authored and GitHub committed 2024-02-06 18:09:50 +01:00
1 parent dc068ce2e6
commit c04f92f7fd
6 files changed
+66 -143

No files matched your search

@@ -930,11 +930,7 @@ export function setExecutionStatus(status: ExecutionStatus) {
return;
}
logger.debug(`Setting execution status for ${this.executionId} to "${status}"`);
Container.get(ActiveExecutions)
.setStatus(this.executionId, status)
.catch((error) => {
logger.debug(`Setting execution status "${status}" failed: ${error.message}`);
});
Container.get(ActiveExecutions).setStatus(this.executionId, status);
}
export function sendDataToUI(type: string, data: IDataObject | IDataObject[]) {