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
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,