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
   
![image](https://github.com/user-attachments/assets/dee3d772-08fa-4e49-afae-2c204bc2182a)
   
   without it will result as something like this:
   ![2024-11-30 
16-10-10](https://github.com/user-attachments/assets/dc12a0c0-c747-457e-a12e-a466e24e2cfb)
   


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