From 94f338ac156fe657c083689877ef0412d3470a3d Mon Sep 17 00:00:00 2001 From: Stuart Douglas Date: Fri, 13 Sep 2024 14:17:42 +1000 Subject: [PATCH] fix: hang on redeployment --- backend/controller/dal/dal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/controller/dal/dal.go b/backend/controller/dal/dal.go index 8a1898cdd4..400e081aa0 100644 --- a/backend/controller/dal/dal.go +++ b/backend/controller/dal/dal.go @@ -663,7 +663,7 @@ func (d *DAL) ReplaceDeployment(ctx context.Context, newDeploymentKey model.Depl if err != nil { return fmt.Errorf("replace deployment failed to set new deployment replicas from %v to %v: %w", oldDeployment.Key, newDeploymentKey, libdal.TranslatePGError(err)) } - err = d.deploymentWillDeactivate(ctx, oldDeployment.Key) + err = tx.deploymentWillDeactivate(ctx, oldDeployment.Key) if err != nil { return fmt.Errorf("replace deployment failed willDeactivate trigger from %v to %v: %w", oldDeployment.Key, newDeploymentKey, libdal.TranslatePGError(err)) }