ashb commented on a change in pull request #17719:
URL: https://github.com/apache/airflow/pull/17719#discussion_r692769520
##########
File path: airflow/www/views.py
##########
@@ -1096,7 +1097,8 @@ def rendered_k8s(self):
logging.info("Retrieving rendered templates.")
dag = current_app.dag_bag.get_dag(dag_id)
task = dag.get_task(task_id)
- ti = models.TaskInstance(task=task, execution_date=dttm)
+ dag_run = dag.get_dagrun(execution_date=execution_date)
+ ti = dag_run.get_task_instance(task_id=task.task_id)
Review comment:
Yes, that involves changing all the URLs, and that felt like it should
be another PR as this one is big enough already :)
--
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]