m8719-github commented on code in PR #60065:
URL: https://github.com/apache/airflow/pull/60065#discussion_r2663152160
##########
airflow-core/src/airflow/serialization/serialized_objects.py:
##########
@@ -1121,7 +1121,10 @@ def _serialize_node(cls, op: SdkOperator) -> dict[str,
Any]:
)
value = getattr(op, template_field, None)
if not cls._is_excluded(value, template_field, op):
- serialize_op[template_field] =
serialize_template_field(value, template_field)
+ if callable(value):
+ serialize_op[template_field] = cls.serialize(value)
Review Comment:
actually went with a different approach based on MD5 hash of the callable
source code. Got the idea from this
[comment](https://github.com/apache/airflow/discussions/59595#discussioncomment-15373896).
--
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]