feat: unified management stop event (#30479)

This commit is contained in:
wangxiaolei
2026-01-06 10:12:05 +08:00
committed by GitHub
parent eccf79a710
commit 061d552928
8 changed files with 586 additions and 10 deletions

View File

@ -2,6 +2,7 @@ from __future__ import annotations
import importlib
import json
import threading
from collections.abc import Mapping, Sequence
from copy import deepcopy
from dataclasses import dataclass
@ -168,6 +169,7 @@ class GraphRuntimeState:
self._pending_response_coordinator_dump: str | None = None
self._pending_graph_execution_workflow_id: str | None = None
self._paused_nodes: set[str] = set()
self.stop_event: threading.Event = threading.Event()
if graph is not None:
self.attach_graph(graph)