uranusjr commented on code in PR #37498:
URL: https://github.com/apache/airflow/pull/37498#discussion_r1522198798
##########
airflow/models/baseoperator.py:
##########
@@ -826,6 +827,8 @@ def __init__(
self.task_id = task_group.child_id(task_id) if task_group else task_id
if not self.__from_mapped and task_group:
task_group.add(self)
+ if isinstance(task_group, MappedTaskGroup):
+ self.deps = self.deps | {MappedTaskUpstreamDep()}
Review Comment:
Instead of doing this, I would choose to make `MappedTaskUpstreamDep` handle
non-mapped task groups with no-op.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]