FIX 加入AutoDL开机异常处理
This commit is contained in:
parent
d1805be4d6
commit
06182e30d5
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue