MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / wait_time

Method wait_time

mod/project/java/project_update.py:277–290  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

275 public.serviceReload()
276
277 def wait_time(self):
278 self.keep_status[2]["status"] = -1
279 if not self.run_time:
280 self.run_time = 10 * 60
281 for i in range(self.run_time):
282 if self.end:
283 return "退出操作"
284 self.keep_status[2]["msg"] = "已进入轮询测试等待"
285 if i > 0:
286 self.keep_status[2]["msg"] = "已进入轮询测试等待,已等待{}s, 共需等待{}s".format(i, self.run_time)
287 time.sleep(1)
288 if not self.new_pro.is_running():
289 return "新示例已退出,无法继续执行操作"
290 return None
291
292 def select_new_or_old(self, option: str):
293 if option == "use_new":

Callers 1

run_taskMethod · 0.95

Calls 2

formatMethod · 0.45
is_runningMethod · 0.45

Tested by

no test coverage detected