Skip to content
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

WIP: Fix execution of Pipelines with parallel nodes #901

Merged
merged 2 commits into from
Mar 18, 2021
Merged

Conversation

oryx1729
Copy link
Contributor

@oryx1729 oryx1729 commented Mar 18, 2021

With #688, the Pipeline was extended to support executing graphs that have parallel nodes.

This worked well until there was a case with a graph having both "branch"(having multiple output streams) node and parallel nodes. In that case, the complete graph did not get executed, resulting in partial results.

Here's the graph:
image

When the QueryRouter returns output_2, then the pipeline executed only one of the two graph retriever nodes and returned the results.

This PR refactor the run() method which resolves the issue.

@oryx1729 oryx1729 merged commit e9f0076 into master Mar 18, 2021
@oryx1729 oryx1729 deleted the pipeline-fix branch March 18, 2021 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant