fix preview run

This commit is contained in:
jyong
2025-08-28 22:01:49 +08:00
parent 1db04aa729
commit 39080eed10
2 changed files with 4 additions and 2 deletions

View File

@ -21,7 +21,7 @@ from core.variables.segments import ArrayAnySegment
from core.variables.variables import ArrayAnyVariable
from core.workflow.entities.variable_pool import VariablePool, VariableValue
from core.workflow.entities.workflow_node_execution import WorkflowNodeExecutionStatus
from core.workflow.enums import ErrorStrategy, NodeType, SystemVariableKey
from core.workflow.enums import ErrorStrategy, NodeType, SystemVariableKey, NodeExecutionType
from core.workflow.node_events import NodeRunResult, StreamChunkEvent, StreamCompletedEvent
from core.workflow.nodes.base.entities import BaseNodeData, RetryConfig
from core.workflow.nodes.base.node import Node
@ -44,6 +44,7 @@ class DatasourceNode(Node):
_node_data: DatasourceNodeData
node_type = NodeType.DATASOURCE
execution_type = NodeExecutionType.ROOT
def init_node_data(self, data: Mapping[str, Any]) -> None:
self._node_data = DatasourceNodeData.model_validate(data)