You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from .statesimportStateProtocolasState, SharedProtocolasShared
10
10
from .hooksimportGraphHook
11
11
from .diffimportChange, ChangeConflictException, Diff
12
12
from .typesimport \
13
13
Edge, ErrorEdge, \
14
14
SingleSource, SingleErrorSource, \
15
15
Config, ErrorConfig, \
16
+
NodeTupel, is_node_tupel, \
16
17
Entry, ErrorEntry, Entries, \
17
18
NextNode
18
19
@@ -64,7 +65,7 @@ class Graph[T: State = State, S: Shared = Shared](BaseModel):
64
65
- `(source, target, Config(instant=True))`: An instant edge from source to target. The target nodes are collected recursively and executed parallel to the source node. Make sure not to create cycles.
65
66
- `(ValueError, target)`: An error edge from ValueError to target. The edge is traversed if a node, which is executed by an incoming edge located BEFORE this error edge in the edge list, throws a ValueError.
66
67
- `((source, Exception), target)`: An error edge from Exception to target. The edge is traversed if the source node is executed by an incoming edge which is located BEFORE this error edge in the edge list throws an Exception. Source node lists are also supported.
67
-
- `(Exception, target, ErrorConfig(propagate=True))`: If propagate is True, the exception is propagated to the next error edges in the edge list. If the exception is not handled by any error edge, it is ultimately raised.
68
+
- `(Exception, target, ErrorConfig(propagate=True))`: If propagate is `True`, the exception is propagated to the next error edges in the edge list. If the exception is not handled by any error edge, it is ultimately raised.
68
69
69
70
70
71
Attributes:
@@ -74,7 +75,7 @@ class Graph[T: State = State, S: Shared = Shared](BaseModel):
0 commit comments