chore(core): Report to Sentry successful execution with empty data (#12669)

This commit is contained in:
Iván Ovejero 2025-01-20 11:07:15 +01:00 committed by GitHub
parent 1eeb788d32
commit 174cd44815
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -287,6 +287,15 @@ export class ExecutionRepository extends Repository<ExecutionEntity> {
const { executionData, metadata, annotation, ...rest } = execution; const { executionData, metadata, annotation, ...rest } = execution;
const serializedAnnotation = this.serializeAnnotation(annotation); 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 { return {
...rest, ...rest,
...(options?.includeData && { ...(options?.includeData && {