You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When you are putting the if_else_condition_task type in the depends_on, you should provide dict with configuration of outcome lineage if_else_outcome={"is_local": "false", "is_local2": "true"}. The problem is that current implementation takes the first value and apply it for all tasks, instead of taking the value by task_name:
@propertydefdepends_on_names(self) ->Iterator[Dict[str, Optional[str]]]:
foriinself.depends_on:
ifself.if_else_outcome:
# Here is the issueoutcome=list(self.if_else_outcome.values())[0]
else:
outcome=Noneifcallable(i) andhasattr(i, "__name__"):
yield {i.__name__: outcome}
else:
yield {str(i): outcome}
Describe the bug
When you are putting the if_else_condition_task type in the depends_on, you should provide dict with configuration of outcome lineage
if_else_outcome={"is_local": "false", "is_local2": "true"}
. The problem is that current implementation takes the first value and apply it for all tasks, instead of taking the value by task_name:To Reproduce
Steps to reproduce the behavior:
Expected behavior
Outcome should be taken correctly based on the key, and not the first one. Generated yaml should look like:
Screenshots

The text was updated successfully, but these errors were encountered: