From 879e45eeb5a4fadce4b9fb61982f6d086106d0c5 Mon Sep 17 00:00:00 2001 From: zhenyus Date: Sun, 3 Aug 2025 12:22:24 +0800 Subject: [PATCH] fix: correct deployment TTL calculation in DeploymentService Updated the TTL calculation in the DeploymentService to multiply by 3600 instead of 60, ensuring accurate time-to-live settings for deployments. Signed-off-by: zhenyus --- apps/devops/app/routes/deployment/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/devops/app/routes/deployment/service.py b/apps/devops/app/routes/deployment/service.py index d2c2e0c..28769fe 100644 --- a/apps/devops/app/routes/deployment/service.py +++ b/apps/devops/app/routes/deployment/service.py @@ -180,7 +180,7 @@ class DeploymentService: causes=deployment.deployment_reason, target_env=deployment.deployment_target_env, ttl_control=True, - ttl=deployment.deployment_ttl_hours * 60, + ttl=deployment.deployment_ttl_hours * 60 * 60, commit_sha256=deployment.deployment_git_sha256, ) # send request to reoncile service