Skip to content

Commit 174cd44

Browse files
authored
chore(core): Report to Sentry successful execution with empty data (#12669)
1 parent 1eeb788 commit 174cd44

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/cli/src/databases/repositories/execution.repository.ts

+9
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,15 @@ export class ExecutionRepository extends Repository<ExecutionEntity> {
287287
const { executionData, metadata, annotation, ...rest } = execution;
288288
const serializedAnnotation = this.serializeAnnotation(annotation);
289289

290+
if (execution.status === 'success' && executionData?.data === '[]') {
291+
this.errorReporter.error('Found successful execution where data is empty stringified array', {
292+
extra: {
293+
executionId: execution.id,
294+
workflowId: executionData?.workflowData.id,
295+
},
296+
});
297+
}
298+
290299
return {
291300
...rest,
292301
...(options?.includeData && {

0 commit comments

Comments
 (0)