mohitgurav20 commented on issue #76808:
URL: https://github.com/apache/airflow/issues/76808#issuecomment-6773269087

   One thought on this: a lot of user_defined_macros in practice are just plain 
strings/dicts used for global template variables (like team_name="data-eng"), 
but today SerializedDAG drops the entire dictionary because it assumes 
everything in there might be a callable.
   
   As a practical first step, could we let DagSerialization keep 
JSON-serializable primitives in user_defined_macros? That would immediately get 
static macros working in the triggerer and async callbacks with zero changes to 
how the triggerer runs.
   
   For actual callables / user_defined_filters, serializing a module:qualname 
reference for top-level functions seems reasonable, though local lambdas would 
still be tricky.


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