mirror of
https://github.com/langgenius/dify.git
synced 2026-04-29 15:08:06 +08:00
record inputs and process data when node failed
This commit is contained in:
@ -96,7 +96,9 @@ class WorkflowEventTriggerCallback(BaseWorkflowCallback):
|
||||
def on_workflow_node_execute_failed(self, node_id: str,
|
||||
node_type: NodeType,
|
||||
node_data: BaseNodeData,
|
||||
error: str) -> None:
|
||||
error: str,
|
||||
inputs: Optional[dict] = None,
|
||||
process_data: Optional[dict] = None) -> None:
|
||||
"""
|
||||
Workflow node execute failed
|
||||
"""
|
||||
@ -105,6 +107,8 @@ class WorkflowEventTriggerCallback(BaseWorkflowCallback):
|
||||
node_id=node_id,
|
||||
node_type=node_type,
|
||||
node_data=node_data,
|
||||
inputs=inputs,
|
||||
process_data=process_data,
|
||||
error=error
|
||||
),
|
||||
PublishFrom.APPLICATION_MANAGER
|
||||
|
||||
Reference in New Issue
Block a user