-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Component Bug] Conditional Router(If-Else in 1.1.0) Cannot Stop Correctly #4590
Comments
The issue you're experiencing with the Here are a few things you might want to check or try:
If these steps do not resolve the issue, it might require a deeper investigation into the codebase to understand how the stop command is processed and why it might not be affecting the workflow as expected. |
Following changes will help you. |
@irshadmb Hi thanks for respones! However, it is just a simplified flow here, so i still need one solution to make this happend. Is it possible in Langflow? |
Please review this PR and test the multi-conditional router, see if it fits your scenario. Let us know if it resolves the issue. If it does, we will consider adding an enhanced version of the multi-conditional router to the components in the upcoming release. cc. @carlosrcoelho @jordanrfrazier ref: Multiconditional router |
Bug Description
I change the conditional Router with
self.stop('method_name')
, but the components of the subsequent process will still be executed.It happened in both of version 1.0.17 and 1.1.0
With the workflow:
[python 3.12.3, langflow 1.0.17]
20241114_debug_conditional_router.json
20241114_debug_conditional_router_v2.json
Test Case
1.input=A, expected_output=A, real_output=A None None
2.input=B, expected_output=B, real_output=None B None
[python 3.12.3, langflow 1.1.0]
Still not work in this version:
20241114_debug_conditional_router_v2_使用langflow1.1.0版本.json
Reproduction
Expected behavior
Just like in Bug Description
Who can help?
No response
Operating System
Windows 11
Langflow Version
1.0.17
Python Version
3.12
Screenshot
No response
Flow File
20241114_debug_conditional_router_v2.json
20241114_debug_conditional_router.json
20241114_debug_conditional_router_v2_使用langflow1.1.0版本.json
The text was updated successfully, but these errors were encountered: