ashb commented on a change in pull request #20000:
URL: https://github.com/apache/airflow/pull/20000#discussion_r763070493



##########
File path: airflow/models/baseoperator.py
##########
@@ -1325,7 +1335,7 @@ def run(
                     execution_date=info.logical_date,
                     data_interval=info.data_interval,
                 )
-                ti = TaskInstance(self, run_id=None)
+                ti = TaskInstance(self, run_id=dr.run_id)

Review comment:
       Oh I remember this one. This is actually a case of "it makes no 
difference at run time" since `ti.dag_run = dr` on the next line has the same 
end effect, but doing it this way makes mypy happier.




-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to