(data:str)
| 1714 | @staticmethod |
| 1715 | def proc_execute_task(task_dict_str: str): |
| 1716 | def proc_worker(data:str): |
| 1717 | task_info = json.loads(data) |
| 1718 | os.chdir(PANEL_PATH) |
| 1719 | sys.path.insert(0, PANEL_PATH) |
| 1720 | sys.path.insert(0, "{}/class".format(PANEL_PATH)) |
| 1721 | from panelTask import bt_task |
| 1722 | bt_task().execute_task(task_info['id'], task_info['type'], task_info['shell'], task_info['other']) |
| 1723 | |
| 1724 | p = Process(target=proc_worker, args=(task_dict_str,), daemon=True) |
| 1725 | p.start() |
nothing calls this directly
no test coverage detected