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

Add support for parallel paths in Pipeline #884

Merged
merged 4 commits into from
Mar 10, 2021
Merged

Conversation

oryx1729
Copy link
Contributor

@oryx1729 oryx1729 commented Mar 10, 2021

The current Pipeline supports parallel paths having exactly one node. For instance, the following graph will work with the existing Pipeline where nodes C and D are parallel paths.

pipeline copy

However, when having more than 1 node in a parallel path is not supported. For instance, in the following graph, where C/E and D are in separate parallel paths.

pipeline

This PR adds supports for the second type of graphs with multiple nodes in a parallel path.

@@ -560,7 +561,7 @@ def run(self, **kwargs):

if self.join_mode == "concatenate":
document_map = {}
for input_from_node, _ in inputs:
for input_from_node in inputs:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The stream IDs from predecessor nodes were erroneously passed here.

@oryx1729 oryx1729 requested a review from tholor March 10, 2021 15:43
@oryx1729 oryx1729 changed the title WIP: Add support for parallel paths in Pipeline Add support for parallel paths in Pipeline Mar 10, 2021
Copy link
Member

@tholor tholor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@oryx1729 oryx1729 merged commit e0a118f into master Mar 10, 2021
@oryx1729 oryx1729 deleted the parallel-pipeline branch March 10, 2021 17:17
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

2 participants