uranusjr commented on code in PR #23177:
URL: https://github.com/apache/airflow/pull/23177#discussion_r857331852


##########
airflow/models/dag.py:
##########
@@ -1694,6 +1683,14 @@ def set_task_instance_state(
             include_upstream=False,
         )
 
+        if execution_date is None:
+            dag_run = (
+                session.query(DagRun).filter(DagRun.run_id == run_id, 
DagRun.dag_id == self.dag_id).one()
+            )  # Raises an error if not found
+            resolve_execution_date = dag_run.execution_date
+        else:
+            resolve_execution_date = execution_date

Review Comment:
   Just to be sure, this is only refactoring so this is not unnecessarily 
called, and not related to the fix, right?



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

Reply via email to