prabhusneha commented on code in PR #47644:
URL: https://github.com/apache/airflow/pull/47644#discussion_r1992880640


##########
task-sdk/src/airflow/sdk/execution_time/task_runner.py:
##########
@@ -599,6 +600,10 @@ def run(
     error: BaseException | None = None
     try:
         context = ti.get_template_context()
+        # Export context to make it available for operators to use.
+        airflow_context_vars = context_to_airflow_vars(context, 
in_env_var_format=True)
+        os.environ.update(airflow_context_vars)

Review Comment:
   Calling from `_execute_task` now.



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