perf(workflow): optimize logging output for workflow nodes
This commit is contained in:
@@ -333,7 +333,6 @@ class WorkflowExecutor:
|
|||||||
"conversation_id": conversation_id,
|
"conversation_id": conversation_id,
|
||||||
"execution_id": self.execution_id,
|
"execution_id": self.execution_id,
|
||||||
"timestamp": data.get("timestamp"),
|
"timestamp": data.get("timestamp"),
|
||||||
"activate": inputv.get("activate"),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elif event_type == "task_result":
|
elif event_type == "task_result":
|
||||||
@@ -354,7 +353,6 @@ class WorkflowExecutor:
|
|||||||
"execution_id": self.execution_id,
|
"execution_id": self.execution_id,
|
||||||
"timestamp": data.get("timestamp"),
|
"timestamp": data.get("timestamp"),
|
||||||
"state": result.get("node_outputs", {}).get(node_name),
|
"state": result.get("node_outputs", {}).get(node_name),
|
||||||
"activate": payload,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -318,10 +318,8 @@ class GraphBuilder:
|
|||||||
):
|
):
|
||||||
logger.debug(f"Conditional routing {src}: selected branch {label}")
|
logger.debug(f"Conditional routing {src}: selected branch {label}")
|
||||||
new_state["activate"][branch["node"]["name"]] = True
|
new_state["activate"][branch["node"]["name"]] = True
|
||||||
logger.info(state)
|
|
||||||
continue
|
continue
|
||||||
new_state["activate"][branch["node"]["name"]] = False
|
new_state["activate"][branch["node"]["name"]] = False
|
||||||
logger.info(f"False{state}")
|
|
||||||
for label, branch in unique_branch.items():
|
for label, branch in unique_branch.items():
|
||||||
branch_activate.append(
|
branch_activate.append(
|
||||||
Send(
|
Send(
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ logger = logging.getLogger(__name__)
|
|||||||
|
|
||||||
|
|
||||||
def merget_activate_state(x, y):
|
def merget_activate_state(x, y):
|
||||||
logger.info(f"merge: {x}, {y}")
|
|
||||||
return {
|
return {
|
||||||
k: x.get(k, False) or y.get(k, False)
|
k: x.get(k, False) or y.get(k, False)
|
||||||
for k in set(x) | set(y)
|
for k in set(x) | set(y)
|
||||||
|
|||||||
Reference in New Issue
Block a user