devgonvarun opened a new issue, #60610:
URL: https://github.com/apache/airflow/issues/60610

   ### Apache Airflow version
   
   Other Airflow 3 version (please specify below)
   
   ### If "Other Airflow 3 version" selected, which one?
   
   3.1.3
   
   ### What happened?
   
   The task_instance_mutation_hook provides the TaskInstance object using which 
one should be able to call the dag_run or call the get_dagrun() from the 
TaskInstance to obtain the DagRun object but both of these dont work. The 
dag_run is always None from the hook. Also there is no way to obtain the 
context through the TaskInstance. So there cannot be a logic implemented that 
makes use of the Params obtained from manual dag triggers. 
   
   ### What you think should happen instead?
   
   task_instance_mutation_hook's TaskInstance should either give access to the 
DagRun object or the context to obtain the Param value of the dag run. 
   
   ### How to reproduce
   
   Create a Param in the Dag code. Manually trigger the dag with the Advanced 
options and pass the Param value with your dag run. Try to access your passed 
Param value in the task_instance_mutation_hook. 
   
   ### Operating System
   
   Debian GNU/Linux 12 (bookworm)
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Official Apache Airflow Helm Chart
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


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