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


##########
airflow/models/taskinstance.py:
##########
@@ -2467,7 +2474,9 @@ def signal_handler(signum, frame):
             self.task.params = context["params"]
 
             with set_current_context(context):
-                task_orig = self.render_templates(context=context)
+                dag = self.task.get_dag()
+                jinja_env = dag.get_template_env(force_sandboxed=True)

Review Comment:
   ```suggestion
                   jinja_env = self.get_template_context()
   ```



-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to