Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
In ScheduleNextTaskIfNeeded, we should stop searching remaining task if encountering a pending approval task
天舟476308808b55
diff --git a/server/pipeline.go b/server/pipeline.goindex 928574afbf..f9f40502a5 100644--- a/server/pipeline.go+++ b/server/pipeline.go@@ -47,6 +47,9 @@ func (s *Server) ComposePipelineRelationship(ctx context.Context, pipeline *api.func (s *Server) ScheduleNextTaskIfNeeded(ctx context.Context, pipeline *api.Pipeline) error {for _, stage := range pipeline.StageList {for _, task := range stage.TaskList {+ if task.Status == api.TaskPendingApproval {+ return nil+ }if task.Status == api.TaskPending {_, err := s.TaskScheduler.Schedule(context.Background(), task)if err != nil {