add message error record

This commit is contained in:
takatost
2024-03-21 18:30:23 +08:00
parent c4e6ed1aa2
commit 34e8d2f6bb
8 changed files with 126 additions and 12 deletions

View File

@ -413,6 +413,11 @@ class WorkflowEngineManager:
node_run_result = node.run(
variable_pool=workflow_run_state.variable_pool
)
except GenerateTaskStoppedException as e:
node_run_result = NodeRunResult(
status=WorkflowNodeExecutionStatus.FAILED,
error='Workflow stopped.'
)
except Exception as e:
logger.exception(f"Node {node.node_data.title} run failed: {str(e)}")
node_run_result = NodeRunResult(