amoghrajesh commented on PR #54774:
URL: https://github.com/apache/airflow/pull/54774#issuecomment-3210446993
Just replaced all the occurecnes with `getattr`, reason being:
* task-sdk TriggerRule has no `__str__`, therefore, f"{trigger_rule}" →
"TriggerRule.ALL_SUCCESS"
* airflow-core TriggerRule has `__str__` and it behaves like
f"{trigger_rule}" → "all_success"
That's why getattr(trigger_rule, 'value', trigger_rule) works for all cases:
Enum objects: Uses .value => "all_success"
String objects: Falls back to string => "unknown_status"
--
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]