jscheffl commented on code in PR #38446:
URL: https://github.com/apache/airflow/pull/38446#discussion_r1540213504
##########
airflow/models/mappedoperator.py:
##########
@@ -386,6 +386,10 @@ def leaves(self) -> Sequence[AbstractOperator]:
"""Implementing DAGNode."""
return [self]
+ @property
+ def task_display_name(self) -> str:
+ return self.partial_kwargs.get("task_display_name", None) or
self.task_id
Review Comment:
Mhm I explicitly left the fallback to `None`in because I was not sure if we
can assume the task_display_name is in always. Did not want to risk a KeyError.
Trying locally if removal of `None` as default has a harm in pytest and make
a small regression before pushing this away
--
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]