Replies: 1 comment 2 replies
-
@vbarda Any suggestions? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a complex graph and at one point in the graph I want the execution to happen simultaneously in 2 branches (I am aware of send api example in documentation). I am successfully able to execute things in both the branches and I am able to merge them properly as well to a single sink node. The state dictionary on both the branches have same keys and one of the keys is of type Annotated[list[str], operator.add].
The above part works fine.
I am trying another scenario where if one of the branches finds a solution then instead of going to the sink node it should go to the end node and the answer should be returned. I have implemented a conditional edge for this purpose and have tried all possible approaches but the execution never Ends instead waits for both the paths to complete.
In one scenario I made both the branches go towards END path instead of sink (indicating both paths found the right answer). Even for this scenario the execution is not stopping until both the path finish execution and reach END.
Has anyone come across an example/resource where graph execution stops and exits even when some other path in the graph was still running since the exit condition was met in one of the paths?
Beta Was this translation helpful? Give feedback.
All reactions