MCPcopy Create free account
hub / github.com/1Panel-dev/MaxKB / hand_node_result

Method hand_node_result

apps/application/flow/workflow_manage.py:392–406  ·  view source on GitHub ↗
(self, current_node, node_result_future)

Source from the content-addressed store, hash-verified

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)):

Callers 1

run_chainMethod · 0.95

Calls 5

write_contextMethod · 0.80
endMethod · 0.80
resultMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected