You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "uranusjr (via GitHub)" <gi...@apache.org> on 2024/08/02 02:59:32 UTC
Re: [I] Downstreaming to a task_group creates a dependency to its returned task, not its first one [airflow]
uranusjr commented on issue #40196:
URL: https://github.com/apache/airflow/issues/40196#issuecomment-2264418319
This is because you return the task from the group function. WHen you do that, dependencies to the group is connected to the task you return. If you want to connect to the group itself instead, simply don’t return the task:
```python
@task_group()
def choice_a() -> int:
value = get_a_value()
operation_on_value(value)
```
However, I do observe another bug. When you do this, we don’t connect the task to the group’s downstream:
<img width="1001" alt="con" src="https://github.com/user-attachments/assets/c1777c10-42de-4b88-9111-f754c6e954ac">
cc @bbovenzi
--
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