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:
parent
6c60a0b6a5
commit
879e45eeb5
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user