Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Do not move to next task if there is running task

天舟296ac8fed525
diff --git a/server/pipeline.go b/server/pipeline.go
index 879861d221..b3e4fe63da 100644
--- a/server/pipeline.go
+++ b/server/pipeline.go
@@ -48,8 +48,8 @@ func (s *Server) ComposePipelineRelationship(ctx context.Context, pipeline *api.
func (s *Server) ScheduleNextTaskIfNeeded(ctx context.Context, pipeline *api.Pipeline) (*api.Task, error) {
for _, stage := range pipeline.StageList {
for _, task := range stage.TaskList {
- // Should short circuit upon reaching failed task.
- if task.Status == api.TaskFailed {
+ // Should short circuit upon reaching RUNNING or FAILED task.
+ if task.Status == api.TaskRunning || task.Status == api.TaskFailed {
return nil, nil
}