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

Method start

task.py:1779–1788  ·  view source on GitHub ↗

@name 延时启动任务

(self)

Source from the content-addressed store, hash-verified

1777 self.task_path='{}/data/tasks'.format(PANEL_PATH)
1778
1779 def start(self):
1780 """
1781 @name 延时启动任务
1782 """
1783
1784 write_log("启动延时任务")
1785 while True:
1786 if os.path.exists(self.task_path):
1787 self.do_once()
1788 time.sleep(60)
1789
1790 def do_once(self):
1791 task_file_list = os.listdir(self.task_path)

Callers

nothing calls this directly

Calls 3

do_onceMethod · 0.95
write_logFunction · 0.70
existsMethod · 0.45

Tested by

no test coverage detected