Skip to content

Commit

Permalink
fix(core): Do not report to Sentry trigger activation errors from `ET…
Browse files Browse the repository at this point in the history
…IMEDOUT` or `ECONNREFUSED`
  • Loading branch information
ivov committed May 13, 2024
1 parent da6088d commit 1737938
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/core/src/ActiveWorkflows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,13 @@ export class ActiveWorkflows {

throw new WorkflowActivationError(
`There was a problem activating the workflow: "${error.message}"`,
{ cause: error, node: triggerNode },
{
cause: error,
node: triggerNode,
level: ['ETIMEDOUT', 'ECONNREFUSED'].some((code) => error.message.includes(code))
? 'warning'
: 'error',
},
);
}
}
Expand Down

0 comments on commit 1737938

Please sign in to comment.