fix(core): Don't report executions that have been paused as failed to rudderstack and log streams (#8501)

This commit is contained in:
Danny Martini 2024-01-31 11:21:15 +01:00 committed by GitHub
parent dac511b710
commit 39e8754784
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -301,6 +301,11 @@ export class InternalHooks {
return;
}
if (runData?.status === 'waiting') {
// No need to send telemetry or logs when the workflow hasn't finished yet.
return;
}
const promises = [];
const telemetryProperties: IExecutionTrackProperties = {

View file

@ -583,7 +583,7 @@ function hookFunctionsSaveWorker(): IWorkflowExecuteHooks {
const workflowStatusFinal = determineFinalExecutionStatus(fullRunData);
if (workflowStatusFinal !== 'success') {
if (workflowStatusFinal !== 'success' && workflowStatusFinal !== 'waiting') {
executeErrorWorkflow(
this.workflowData,
fullRunData,