From 174cd44815cdaf0ce8c14554beafb2c3cf4ade34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Mon, 20 Jan 2025 11:07:15 +0100 Subject: [PATCH] chore(core): Report to Sentry successful execution with empty data (#12669) --- .../src/databases/repositories/execution.repository.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/cli/src/databases/repositories/execution.repository.ts b/packages/cli/src/databases/repositories/execution.repository.ts index 160b7ace87..975ab601b1 100644 --- a/packages/cli/src/databases/repositories/execution.repository.ts +++ b/packages/cli/src/databases/repositories/execution.repository.ts @@ -287,6 +287,15 @@ export class ExecutionRepository extends Repository { const { executionData, metadata, annotation, ...rest } = execution; const serializedAnnotation = this.serializeAnnotation(annotation); + if (execution.status === 'success' && executionData?.data === '[]') { + this.errorReporter.error('Found successful execution where data is empty stringified array', { + extra: { + executionId: execution.id, + workflowId: executionData?.workflowData.id, + }, + }); + } + return { ...rest, ...(options?.includeData && {