Fix: deploy.py status check — accept finished as success

This commit is contained in:
Agent Zero
2026-07-26 00:59:10 +02:00
parent 30b94fc738
commit b067369651
+1 -1
View File
@@ -170,7 +170,7 @@ def wait_for_deployment(client: CoolifyClient, deployment_uuid: str, timeout: in
status = dep.get("status", "unknown") status = dep.get("status", "unknown")
elapsed = int(time.time() - start) elapsed = int(time.time() - start)
print(f" [{elapsed}s] Status: {status}") print(f" [{elapsed}s] Status: {status}")
if status == "success": if status in ("success", "finished"):
return DeployResult(True, "Deployment successful", time.time() - start, dep) return DeployResult(True, "Deployment successful", time.time() - start, dep)
if status == "failed": if status == "failed":
return DeployResult(False, f"Deployment failed: {dep.get('message', 'unknown')}", time.time() - start, dep) return DeployResult(False, f"Deployment failed: {dep.get('message', 'unknown')}", time.time() - start, dep)