amoghrajesh commented on code in PR #66002:
URL: https://github.com/apache/airflow/pull/66002#discussion_r3181465580
##########
airflow-core/src/airflow/models/taskinstance.py:
##########
@@ -1633,7 +1633,19 @@ def defer_task(self, session: Session = NEW_SESSION) ->
bool:
assert isinstance(self.task, Operator)
if start_trigger_args := self.start_trigger_args:
- trigger_kwargs = start_trigger_args.trigger_kwargs or {}
+ from airflow.serialization.enums import Encoding
+
+ def _normalize(d: Any) -> Any:
+ # trigger_kwargs arrives with Encoding enum keys from
BaseSerialization.
+ # On Python 3.10, str(Encoding.TYPE) returns "Encoding.TYPE"
not "__type",
Review Comment:
Fair point. Reworded to make clear that 3.10 is the default CI target, not
an edge case.
--
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]