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


##########
airflow/cli/commands/task_command.py:
##########
@@ -156,8 +156,10 @@ def _get_dag_run(
     raise ValueError(f"unknown create_if_necessary value: 
{create_if_necessary!r}")
 
 
+@internal_api_call
 @provide_session
-def _get_ti(
+def _get_ti_db_access(
+    dag: DAG,
     task: Operator,

Review Comment:
   Maybe should add a check to guard misuses where the task is from a different 
DAG.



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