refactor(api): continue decoupling dify_graph from API concerns (#33580)

Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: WH-2099 <wh2099@pm.me>
This commit is contained in:
-LAN-
2026-03-25 20:32:24 +08:00
committed by GitHub
parent b7b9b003c9
commit 56593f20b0
487 changed files with 17999 additions and 9186 deletions

View File

@ -8,9 +8,9 @@ DynamicScaler, and WorkerFactory into a single class.
import logging
import queue
import threading
from contextlib import AbstractContextManager
from typing import final
from dify_graph.context import IExecutionContext
from dify_graph.graph import Graph
from dify_graph.graph_events import GraphNodeEventBase
@ -38,7 +38,7 @@ class WorkerPool:
graph: Graph,
layers: list[GraphEngineLayer],
config: GraphEngineConfig,
execution_context: IExecutionContext | None = None,
execution_context: AbstractContextManager[object] | None = None,
) -> None:
"""
Initialize the simple worker pool.