FIX 加入AutoDL开机异常处理
This commit is contained in:
@@ -181,6 +181,10 @@ def payg(region_name:str, machine_id:str) -> tuple[Any, Any] | None:
|
|||||||
if status == "running":
|
if status == "running":
|
||||||
ssh_try(host, port, pwd, j['data'])
|
ssh_try(host, port, pwd, j['data'])
|
||||||
break
|
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:
|
else:
|
||||||
lim = lim-1
|
lim = lim-1
|
||||||
if lim > 0:
|
if lim > 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user