turbaszek commented on a change in pull request #8805:
URL: https://github.com/apache/airflow/pull/8805#discussion_r427252150



##########
File path: airflow/models/dag.py
##########
@@ -1468,6 +1468,10 @@ def create_dagrun(self,
         :param session: database session
         :type session: sqlalchemy.orm.session.Session
         """
+        # Resolve relationship between task set by XComArgs
+        for task in self.tasks:
+            task.set_xcomargs_dependencies()

Review comment:
       I removed this code. Everything works fine (dag rendering in web UI, 
running dags, backfill etc). The only problem is that code like this will not 
work anymore:
   ```
   if __name__ == '__main__':
       dag.run()
   ```
   




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to