@name 延时启动任务
(self)
| 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) |