turbaszek commented on issue #12309:
URL: https://github.com/apache/airflow/issues/12309#issuecomment-726179518


   Minimal example to replicate it:
   ```py
   from airflow.models import DAG
   from airflow.operators.python import task
   from airflow.utils.dates import days_ago
   from airflow.utils.state import State
   from airflow.utils.task_group import TaskGroup
   
   @task
   def show():
       print("cats are awesome")
   
   with DAG(
       "using_task_group",
       default_args={'owner': 'airflow'},
       start_date=days_ago(2),
       schedule_interval=None,
   ) as dag:
   
       with TaskGroup(group_id="tasks_1") as tg1:
           show()
           show()
   
   
   if __name__ == '__main__':
       dag.clear(dag_run_state=State.NONE)
       dag.run()
   ```


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