FIX 加入AutoDL开机异常处理

This commit is contained in:
kyj@bowong.ai 2025-04-17 17:32:34 +08:00
parent d1805be4d6
commit 06182e30d5
1 changed files with 4 additions and 0 deletions

View File

@ -181,6 +181,10 @@ def payg(region_name:str, machine_id:str) -> tuple[Any, Any] | None:
if status == "running":
ssh_try(host, port, pwd, j['data'])
break
elif status == "shutdown_by_starting_error":
loguru.logger.error("Create Payg Instance Error: Start Error, Try Remove Instance[%s]" % j['data'])
instance_operate(j['data'], "release")
return None
else:
lim = lim-1
if lim > 0: