mohitgurav20 commented on code in PR #76859:
URL: https://github.com/apache/airflow/pull/76859#discussion_r4537134995


##########
airflow-core/src/airflow/serialization/definitions/dag.py:
##########
@@ -185,6 +190,21 @@ def timetable(self, value: Timetable) -> None:
         self._timetable = value
         self._encoded_timetable = None
 
+    def get_template_env(self, *, force_sandboxed: bool = False) -> 
jinja2.Environment:
+        """
+        Build a Jinja2 environment using the primitives stored at 
serialization time.
+
+        Callables from ``user_defined_macros`` and all 
``user_defined_filters`` cannot
+        survive JSON serialization, so they are absent here.  DAGs that need 
callable
+        macros in a trigger context must load the bundle and re-import the DAG 
file.

Review Comment:
   done sirrr.
   



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