Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion backend/core/runner/run_pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ func runPipelineTasks(
return err
}

// if pipeline has been cancelled, just return.
if dbPipeline.Status == models.TASK_CANCELLED {
return nil
}

// This double for loop executes each set of tasks sequentially while
// executing the set of tasks concurrently.
for i, row := range taskIds {
Expand All @@ -90,6 +95,10 @@ func runPipelineTasks(
}
}
}
log.Info("pipeline finished in %d ms: %v", time.Now().UnixMilli()-dbPipeline.BeganAt.UnixMilli(), err)
if dbPipeline.BeganAt != nil {
log.Info("pipeline finished in %d ms: %v", time.Now().UnixMilli()-dbPipeline.BeganAt.UnixMilli(), err)
} else {
log.Info("pipeline finished at %d ms: %v", time.Now().UnixMilli(), err)
}
return err
}