ashb commented on a change in pull request #21445: URL: https://github.com/apache/airflow/pull/21445#discussion_r806227197
########## File path: airflow/serialization/serialized_objects.py ########## @@ -707,6 +710,9 @@ def deserialize_operator(cls, encoded_op: Dict[str, Any]) -> Union[BaseOperator, v = cls._deserialize_timedelta(v) elif k in encoded_op["template_fields"]: pass + elif k == "resources" and Resources.is_operator_resources_json_string(v): Review comment: Can you explain why this` is_...()` function is needed? It's not a pattern we have elsewhere in serialization. -- 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: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org