You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "dstandish (via GitHub)" <gi...@apache.org> on 2023/08/04 01:52:40 UTC

[GitHub] [airflow] dstandish opened a new issue, #33093: Task ids not shown inside task group

dstandish opened a new issue, #33093:
URL: https://github.com/apache/airflow/issues/33093

   ### Body
   
   task ids not shown in graph.
   note the tasks are not actually setup / teardown just normal tasks named that way.
   
   <img width="1173" alt="image" src="https://github.com/apache/airflow/assets/15932138/d31a8fb9-df2e-472b-a743-620511c472c0">
   
   ```python
   with DAG(dag_id="leaves_ignored", start_date=pendulum.now()):
       @task
       def setup1():
           ...
       @task
       def setup2():
           ...
       @task
       def teardown1():
           ...
       @task
       def teardown2():
           ...
       @task
       def work1():
           ...
       @task
       def work2():
           ...
   
   
       setup1 = setup1()
       # setup2 = setup2()
       teardown1 = teardown1()
       # teardown2 = teardown2()
       work1 = work1()
       work2 = work2()
   
       with TaskGroup("my_group") as tg:
           setup1 >> work1 >> teardown1
           setup1 >> teardown1
       tg >> work2
   ```
   
   @bbovenzi 
   
   ### Committer
   
   - [X] I acknowledge that I am a maintainer/committer of the Apache Airflow project.


-- 
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: commits-unsubscribe@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] eladkal commented on issue #33093: Task ids not shown inside task group

Posted by "eladkal (via GitHub)" <gi...@apache.org>.
eladkal commented on issue #33093:
URL: https://github.com/apache/airflow/issues/33093#issuecomment-1684355748

   Checked with @ephraimbuddy this was solved in 2.7.0rc2


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] dstandish commented on issue #33093: Task ids not shown inside task group

Posted by "dstandish (via GitHub)" <gi...@apache.org>.
dstandish commented on issue #33093:
URL: https://github.com/apache/airflow/issues/33093#issuecomment-1670556384

   Update: we must now use `add_task` to add the tasks to group context:
   ```python
       with TaskGroup("my_group") as tg:
           setup1 >> work1 >> teardown1
           setup1 >> teardown1
           tg.add_task(setup1)
           tg.add_task(teardown1)
           tg.add_task(work1)
       tg >> work2
   ```


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] eladkal commented on issue #33093: Task ids not shown inside task group

Posted by "eladkal (via GitHub)" <gi...@apache.org>.
eladkal commented on issue #33093:
URL: https://github.com/apache/airflow/issues/33093#issuecomment-1674222250

   > we must now use add_task to add the tasks to group context
   
   Did https://github.com/apache/airflow/pull/33262 solve this issue?


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] eladkal closed issue #33093: Task ids not shown inside task group

Posted by "eladkal (via GitHub)" <gi...@apache.org>.
eladkal closed issue #33093: Task ids not shown inside task group
URL: https://github.com/apache/airflow/issues/33093


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org