m8719-github commented on code in PR #60065:
URL: https://github.com/apache/airflow/pull/60065#discussion_r2666184171
##########
airflow-core/src/airflow/serialization/helpers.py:
##########
@@ -71,7 +75,11 @@ def sort_dict_recursively(obj: Any) -> Any:
try:
serialized = template_field.serialize()
except AttributeError:
- serialized = str(template_field)
+ if callable(template_field):
+ fingerprint = get_python_source_md5(template_field)
Review Comment:
done.
also, added logic for one level of indirection: template var callable
supplied by another function call.
##########
airflow-core/src/airflow/serialization/helpers.py:
##########
@@ -71,7 +75,11 @@ def sort_dict_recursively(obj: Any) -> Any:
try:
serialized = template_field.serialize()
except AttributeError:
- serialized = str(template_field)
+ if callable(template_field):
+ fingerprint = get_python_source_md5(template_field)
Review Comment:
done.
also added logic for one level of indirection: template var callable
supplied by another function call.
--
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]