Skip to content

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

fix(runner): automatic rollout not work (#19888)

Danny Xu41124f4a1bed
diff --git a/backend/api/v1/rollout_service.go b/backend/api/v1/rollout_service.go
index 808f0f6ebc..6550f24887 100644
--- a/backend/api/v1/rollout_service.go
+++ b/backend/api/v1/rollout_service.go
@@ -440,7 +440,7 @@ func CreateRolloutAndPendingTasks(
policy, ok := envPolicies[task.Environment]
if !ok {
var err error
- policy, err = s.GetRolloutPolicy(ctx, common.GetWorkspaceIDFromContext(ctx), task.Environment)
+ policy, err = s.GetRolloutPolicy(ctx, project.Workspace, task.Environment)
if err != nil {
// Don't error out entirely just because policy fetch failed for one env, but logging/continuing is better.
// However, here we don't have logger injected easily.