mirror of
https://github.com/langgenius/dify.git
synced 2026-04-30 23:48:04 +08:00
fix(api): Ensure is_resumption for node_started event is correctly set
This commit is contained in:
@ -301,6 +301,7 @@ class Node(Generic[NodeDataT]):
|
||||
def run(self) -> Generator[GraphNodeEventBase, None, None]:
|
||||
execution_id = self.ensure_execution_id()
|
||||
self._start_at = naive_utc_now()
|
||||
is_resumption = self.graph_runtime_state.is_node_resumption(self._node_id, execution_id)
|
||||
|
||||
# Create and push start event with required fields
|
||||
start_event = NodeRunStartedEvent(
|
||||
@ -310,6 +311,7 @@ class Node(Generic[NodeDataT]):
|
||||
node_title=self.title,
|
||||
in_iteration_id=None,
|
||||
start_at=self._start_at,
|
||||
is_resumption=is_resumption,
|
||||
)
|
||||
|
||||
# === FIXME(-LAN-): Needs to refactor.
|
||||
|
||||
Reference in New Issue
Block a user