Skip to content

task_display_name does not affect displayed task name in Grid and Graph view #56094

@TJaniF

Description

@TJaniF

Apache Airflow version

main (development)

If "Other Airflow 2 version" selected, which one?

No response

What happened?

Found in RC2

Setting

@task(
        task_display_name="Get Astronauts"
)
def get_astronauts():
    pass

get_astronauts()

in the first task results in the task name still being the task ID:

Image

What you think should happen instead?

The same task in 3.0.6 does use the task_display_name:

Image

How to reproduce

  1. Use 3.1
  2. add a task_display_name different from the task ID to any task
  3. see the task ID not updating

Operating System

macOS 15.7

Versions of Apache Airflow Providers

not relevant

Deployment

Other

Deployment details

Local Astro CLI 3.1-1-alpha3

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    affected_version:3.1Issues Reported for 3.1area:UIRelated to UI/UX. For Frontend Developers.kind:bugThis is a clearly a bugpriority:mediumBug that should be fixed before next release but would not block a release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions