feat(core): Add error reporting for workflow evaluation (no-changelog) (#12838)

Co-authored-by: oleg <me@olegivaniv.com>
This commit is contained in:
Eugene
2025-02-11 18:03:41 +03:00
committed by GitHub
parent 17acf70591
commit 02573b46e0
29 changed files with 947 additions and 135 deletions

View File

@@ -19,6 +19,7 @@ import * as CrashJournal from '@/crash-journal';
import * as Db from '@/db';
import { getDataDeduplicationService } from '@/deduplication';
import { DeprecationService } from '@/deprecation/deprecation.service';
import { TestRunnerService } from '@/evaluation.ee/test-runner/test-runner.service.ee';
import { MessageEventBus } from '@/eventbus/message-event-bus/message-event-bus';
import { TelemetryEventRelay } from '@/events/relays/telemetry.event-relay';
import { initExpressionEvaluator } from '@/expression-evaluator';
@@ -259,6 +260,10 @@ export abstract class BaseCommand extends Command {
Container.get(WorkflowHistoryManager).init();
}
async cleanupTestRunner() {
await Container.get(TestRunnerService).cleanupIncompleteRuns();
}
async finally(error: Error | undefined) {
if (inTest || this.id === 'start') return;
if (Db.connectionState.connected) {