mirror of
https://github.com/langgenius/dify.git
synced 2026-04-15 01:38:19 +08:00
refactor(graph_engine): Move ErrorHandler into a single file package
Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
parent
80f39963f1
commit
836ed1f380
@ -58,7 +58,7 @@ layers =
|
||||
orchestration
|
||||
command_processing
|
||||
event_management
|
||||
error_handling
|
||||
error_handler
|
||||
graph_traversal
|
||||
graph_state_manager
|
||||
worker_management
|
||||
|
||||
@ -23,7 +23,7 @@ from core.workflow.graph_events import (
|
||||
from core.workflow.node_events import NodeRunResult
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from ..domain import GraphExecution
|
||||
from .domain import GraphExecution
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@ -1,12 +0,0 @@
|
||||
"""
|
||||
Error handling for graph engine.
|
||||
|
||||
This package provides error handling functionality for managing
|
||||
node execution failures with different recovery strategies.
|
||||
"""
|
||||
|
||||
from .error_handler import ErrorHandler
|
||||
|
||||
__all__ = [
|
||||
"ErrorHandler",
|
||||
]
|
||||
@ -31,7 +31,7 @@ from ..domain.graph_execution import GraphExecution
|
||||
from ..response_coordinator import ResponseStreamCoordinator
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from ..error_handling import ErrorHandler
|
||||
from ..error_handler import ErrorHandler
|
||||
from ..graph_state_manager import GraphStateManager
|
||||
from ..graph_traversal import EdgeProcessor
|
||||
from .event_manager import EventManager
|
||||
|
||||
@ -31,7 +31,7 @@ from models.enums import UserFrom
|
||||
from .command_processing import AbortCommandHandler, CommandProcessor
|
||||
from .domain import ExecutionContext, GraphExecution
|
||||
from .entities.commands import AbortCommand
|
||||
from .error_handling import ErrorHandler
|
||||
from .error_handler import ErrorHandler
|
||||
from .event_management import EventHandler, EventManager
|
||||
from .graph_state_manager import GraphStateManager
|
||||
from .graph_traversal import EdgeProcessor, SkipPropagator
|
||||
|
||||
Loading…
Reference in New Issue
Block a user