(self, current_node, node_result_future)
| 390 | return None |
| 391 | |
| 392 | def hand_node_result(self, current_node, node_result_future): |
| 393 | try: |
| 394 | current_result = node_result_future.result() |
| 395 | result = current_result.write_context(current_node, self) |
| 396 | if result is not None: |
| 397 | # 阻塞获取结果 |
| 398 | list(result) |
| 399 | return current_result |
| 400 | except Exception as e: |
| 401 | maxkb_logger.error(f'Exception: {e}', exc_info=True) |
| 402 | self.status = 500 |
| 403 | current_node.get_write_error_context(e) |
| 404 | self.answer += str(e) |
| 405 | finally: |
| 406 | current_node.node_chunk.end() |
| 407 | |
| 408 | def append_node(self, current_node): |
| 409 | for index in range(len(self.node_context)): |
no test coverage detected