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

   ### What do you see as an issue?
   
   We are building a pipeline using airflow. We are using 
KubernetesPodOperators and KubernetesExecutor. We are anticipating different 
reasons that a task might fail. I would like to be able to explore how much 
information I can get about the reason and the moment  the task failed from the 
context passed to   he on_failure callback function. However, I find it 
difficult to understand what will be passed in context. The only documentation 
I have been able to find that relates to this is a page describing templated 
variables. This seems not completely appropriate. Most of the variables 
description is simply saying things like {{ ti }}  task_instance object, which 
is not enough for me to know what information I can get from inspecting these.
   
   
   ### Solving the problem
   
   
   Perhaps there is better documentation that I missed, otherwise I believe 
this is a documentation issue that would be relatively high on my priority list.
   
   If documentation does exist, I think it should be made easier to find. If 
not, I think a documentation chapter on the operator context and how to use it 
(preferable with some concrete examples of usage) would be a huge gain for the 
project, IMO.
   
   ### 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