Skip to content

Commit 94e0828

Browse files
committed
Improve callback display name
1 parent b624871 commit 94e0828

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • airflow-core/src/airflow/executors/workloads

airflow-core/src/airflow/executors/workloads/callback.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,11 @@ def key(self) -> CallbackKey:
8282

8383
@property
8484
def display_name(self) -> str:
85-
"""Return the callback ID as a display name."""
85+
"""Return a human-readable name for logging and process titles."""
86+
if path := self.callback.data.get("path", ""):
87+
# Use just the function/class name for brevity in process titles.
88+
# The full path and UUID are available in log messages if needed.
89+
return path.rsplit(".", 1)[-1]
8690
return str(self.callback.id)
8791

8892
@property

0 commit comments

Comments
 (0)