执行结果处理,调用结果处理的适配类 :return: task是否成功
(self, params)
| 55 | pass |
| 56 | |
| 57 | def runner(self, params): |
| 58 | """ |
| 59 | 执行结果处理,调用结果处理的适配类 |
| 60 | :return: task是否成功 |
| 61 | """ |
| 62 | Reporter(params).update_task_progress(InfoType.DataHandleTask) |
| 63 | # 调整扫描结果数据结构 |
| 64 | # 循环执行结果处理队列 |
| 65 | for datahander_type in HANDLE_QUEUE: |
| 66 | if QuickScan.is_quick_scan() and datahander_type not in [Formater, IssueIgnore]: |
| 67 | continue |
| 68 | tool_handle_type_name = datahander_type.get_tool_handle_type_name() |
| 69 | logger.info(f"[Start] {tool_handle_type_name}") |
| 70 | start_time = time.time() |
| 71 | datahander_type(getattr(self.tool, tool_handle_type_name)()).run(params) |
| 72 | logger.info(f"[End] {tool_handle_type_name} (use time: {time.time() - start_time})") |
| 73 | |
| 74 | logger.info("datahandle done!") |
| 75 | return params["result"] |
| 76 | |
| 77 | |
| 78 | task = DataHandleTask |
nothing calls this directly
no test coverage detected