Skip to content

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

fix: avoid hanging on approval flow calculation (#18198)

h3n4lfdafaabd123b
diff --git a/backend/runner/approval/runner.go b/backend/runner/approval/runner.go
index a2590e5710..f037ac8303 100644
--- a/backend/runner/approval/runner.go
+++ b/backend/runner/approval/runner.go
@@ -393,7 +393,7 @@ func (r *Runner) getDatabaseGeneralIssueRisk(ctx context.Context, issue *store.I
var planCheckRunDone int
// the latest plan check run is not done yet, return done=false
for _, run := range latestPlanCheckRun {
- if run.Status == store.PlanCheckRunStatusDone {
+ if run.Status != store.PlanCheckRunStatusRunning {
planCheckRunDone++
}
}