grepthat commented on pull request #13299:
URL: https://github.com/apache/airflow/pull/13299#issuecomment-769848160


   @kaxil @houqp Looks good :+1: I checked this on a test DAG with a long task 
name (via nested Task Groups). Attached is the DAG as a reference:
   
   <details>
   <summary>process_long_taskname.py</summary>
   
   ```python
   from airflow import DAG
   from datetime import timedelta, datetime
   from airflow.operators.bash_operator import BashOperator
   from airflow.utils.task_group import TaskGroup
   
   dag = DAG(
       'process_long_task',
       default_args= {
           'owner': 'airflow',
           'depends_on_past': False,
           'retries' : 0,
           'start_date': datetime(1970, 1, 1),
           'retry_delay': timedelta(seconds=30),
       },
       description='',
       schedule_interval=None,
       catchup=False,
   )
   
   TG_survey00000 = TaskGroup(
       "TG_survey00000", 
       tooltip="", 
       dag=dag
   )
   
   TG_incremental_adjustment_survey00000_f608c63d9b = TaskGroup(
       "TG_incremental_adjustment_survey00000_f608c63d9b", 
       tooltip="", 
       parent_group=TG_survey00000,
       dag=dag
   )
   
   TG_msac_10_survey00000_1c1a34cf10 = TaskGroup(
       "TG_msac_10_survey00000_1c1a34cf10", 
       tooltip="", 
       parent_group=TG_incremental_adjustment_survey00000_f608c63d9b,
       dag=dag
   )
   
   TG_adjuster_786931747d = TaskGroup(
       "TG_bundle_adjuster_786931747d", 
       tooltip="", 
       parent_group=TG_msac_10_survey00000_1c1a34cf10,
       dag=dag
   )
   
   TG_color_0_521cd0b3f7 = TaskGroup(
       "TG_color_0_521cd0b3f7", 
       tooltip="", 
       parent_group=TG_adjuster_786931747d,
       dag=dag
   )
   
   T_finalize_5b57782bb2 = BashOperator(
       task_id='T_finalize_5b57782bb2',
       bash_command='echo "executing nested task && sleep 10"',
       dag=dag,
       task_group=TG_color_0_521cd0b3f7
   )
   ```
   
   </details>


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to