This is an automated email from the ASF dual-hosted git repository.

kaxilnaik pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/master by this push:
     new f70257f  Add Cross reference for Accessing Task Context in TaskFlow 
API (#14405)
f70257f is described below

commit f70257f02b6bd933cfe363f1d10eaac1d15904df
Author: Kaxil Naik <[email protected]>
AuthorDate: Wed Feb 24 06:00:31 2021 +0000

    Add Cross reference for Accessing Task Context in TaskFlow API (#14405)
    
    Lot of users have been asking this on Slack, SO etc on how to do
    that. While we have it in our doc, it isn't cross-referenced in
    TaskFlow API which causes that feature to be hidden.
---
 docs/apache-airflow/concepts.rst | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/docs/apache-airflow/concepts.rst b/docs/apache-airflow/concepts.rst
index c48714a..31473a6 100644
--- a/docs/apache-airflow/concepts.rst
+++ b/docs/apache-airflow/concepts.rst
@@ -198,6 +198,9 @@ Example DAG built with the TaskFlow API
         html_content=email_info['body']
     )
 
+To retrieve current Task execution context dictionary and use it in the 
function check:
+:ref:`Accessing context <concepts:accessing_context>`.
+
 DAG decorator
 -------------
 
@@ -357,6 +360,8 @@ This is going to produce ``task__1``, ``task__2``, 
``task__3``, ``task__4``. But
 no longer the same ``task__3`` as before. This may create confusion when 
analyzing history logs / DagRuns of a DAG
 that changed over time.
 
+.. _concepts:accessing_context:
+
 Accessing current context
 -------------------------
 

Reply via email to