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 <zhenyus@mathmast.com>
This commit is contained in:
zhenyus 2025-08-03 12:22:24 +08:00
parent 6c60a0b6a5
commit 879e45eeb5

View File

@ -180,7 +180,7 @@ class DeploymentService:
causes=deployment.deployment_reason, causes=deployment.deployment_reason,
target_env=deployment.deployment_target_env, target_env=deployment.deployment_target_env,
ttl_control=True, ttl_control=True,
ttl=deployment.deployment_ttl_hours * 60, ttl=deployment.deployment_ttl_hours * 60 * 60,
commit_sha256=deployment.deployment_git_sha256, commit_sha256=deployment.deployment_git_sha256,
) )
# send request to reoncile service # send request to reoncile service