ferruzzi commented on code in PR #62645:
URL: https://github.com/apache/airflow/pull/62645#discussion_r2874944650


##########
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:
   Yeah, that's actually a solid idea.  We use task id so I just used the 
callback id, but I could do `f"{callback.path}({callback.kargs})"`  or 
something like that?



-- 
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]

Reply via email to