ashb commented on code in PR #27540:
URL: https://github.com/apache/airflow/pull/27540#discussion_r1017194249
##########
airflow/decorators/base.py:
##########
@@ -210,17 +212,27 @@ def __init__(
super().__init__(task_id=task_id, **kwargs_to_upstream, **kwargs)
def execute(self, context: Context):
+ for arg in chain(self.op_args, self.op_kwargs.values()):
+ if isinstance(arg, Dataset):
+ self.inlets.append(arg)
Review Comment:
Shouldn't this be done in the prepare_lineage function (which I think will
already called by `super().execute(context)` a few lines down.
--
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]