ferruzzi commented on code in PR #62645:
URL: https://github.com/apache/airflow/pull/62645#discussion_r2875543734
##########
airflow-core/src/airflow/executors/workloads/callback.py:
##########
@@ -75,6 +75,24 @@ class ExecuteCallback(BaseDagBundleWorkload):
type: Literal["ExecuteCallback"] = Field(init=False,
default="ExecuteCallback")
+ @property
+ def key(self) -> CallbackKey:
+ """Return the callback key for this workload."""
+ return self.callback.key
+
+ @property
+ def display_name(self) -> str:
+ """Return the callback ID as a display name."""
+ return str(self.callback.id)
Review Comment:
Actually, the path and kwargs are both arbitrary length and could get messy,
they'd almost certainly get truncated to something useless. Let's just go with
the method/function name as you suggested.
--
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]