mhenc commented on code in PR #35312: URL: https://github.com/apache/airflow/pull/35312#discussion_r1379987451
########## airflow/api/common/experimental/get_task_instance.py: ########## @@ -42,5 +42,6 @@ def get_task_instance(dag_id: str, task_id: str, execution_date: datetime) -> Ta if not task_instance: error_message = f"Task {task_id} instance for date {execution_date} not found" raise TaskInstanceNotFound(error_message) - + # API methods has access to the database. + assert isinstance(task_instance, TaskInstance) Review Comment: Fair point - switched to if-raise as we won't plan to change it in the near future. -- 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