m8719-github commented on issue #59465:
URL: https://github.com/apache/airflow/issues/59465#issuecomment-3704392807

   Also ran into this issue.
   Our use-case: we are injecting labels + annotations into KPO (Kubernetes pod 
operator) task via templating functions of the form: `fn(context: Context, 
jinja_env: jinja2.Environment)` and when these get serialized we get this for 
`labels`: `<function get_labels.<locals>._get_labels at 0x7fe89e4aa7a0>` in 
`LazyDeserializedDAG.data` field.
   The address obviously changes on different calls of `dag-processor` every 
refresh interval, leading to hash mismatch and a version explosion.
   We do this for integration with our K8s observability platform, it's a 
requirement for us. 


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