darkag commented on PR #44488:
URL: https://github.com/apache/airflow/pull/44488#issuecomment-2508997030
Sure, here is step to reproduce the issue with the the following dag
```python
from __future__ import annotations
import pendulum
from airflow.decorators import dag, task
from airflow.operators.empty import EmptyOperator
# [START dag_decorator_usage]
@dag(
schedule=None,
start_date=pendulum.datetime(2021, 1, 1, tz="UTC"),
catchup=False,
tags=["example"],
dag_display_name="Sample DAG with Display Name",
)
def example_display_name():
sample_task_1 = EmptyOperator(
task_id="sample_task_1",
task_display_name="Sample Task 1",
)
@task(task_display_name="Sample Task 2")
def sample_task_2():
pass
sample_task_1 >> sample_task_2()
example_dag = example_display_name()
```
trigger a dag run of this dag
clear "Sample task 2"
with the fix, the gantt gaph should look to something like this

without it will result as something like this:

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