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

fix pipeline run loop on joined pipelines whithout debug flag #2777

Merged
merged 2 commits into from Jul 7, 2022

Conversation

tstadel
Copy link
Member

@tstadel tstadel commented Jul 7, 2022

Related Issue(s):
Fixes the broken tests of PR #2776

Proposed changes:

  • look if _debug is actual there before merging it

Copy link
Member

@julian-risch julian-risch left a comment

Choose a reason for hiding this comment

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

Just a small question about consistency. See my comment below.

"_debug": {**existing_input["_debug"], **node_output["_debug"]},
}
updated_input: dict = {"inputs": [existing_input, node_output], "params": params}
if "_debug" in existing_input.keys() or "_debug" in node_output:
Copy link
Member

Choose a reason for hiding this comment

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

existing_input and node_output are both dictionaries right? So I would suggest to check with the same approach whether they contain the "_debug" key. Or is there a specific reason to not do that?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh yes, my bad...

Copy link
Member

@julian-risch julian-risch left a comment

Choose a reason for hiding this comment

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

LGTM! 👍

@julian-risch julian-risch merged commit d21b066 into master Jul 7, 2022
@julian-risch julian-risch deleted the fix_2776_bug branch July 7, 2022 14:48
Krak91 pushed a commit to Krak91/haystack that referenced this pull request Jul 26, 2022
…t-ai#2777)

* fix pipeline run loop on joined pipelines whithout debug flag

* use .keys() consistently
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic:pipeline type:bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants