You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/09/30 20:50:01 UTC
[GitHub] [airflow] ephraimbuddy commented on issue #17686: Xcomms with Taskflow API cause unwanted dependencies in UI
ephraimbuddy commented on issue #17686:
URL: https://github.com/apache/airflow/issues/17686#issuecomment-931654295
The issue is the way you are defining the relationship.
This should work:
```python
date = set_date()
xcomm_task2(date)>>xcomm_task3(date)
```
Because xcomm_task2 needs data from set_date same as xcomm_task3
Anytime you call a task decorated function, you create a task.
The code below will create two different tasks from set_date:
```python
xcomm_task2(set_date())>>xcomm_task3(set_date())
```
That's why you have to assign the call to `set_date()` to a variable and pass the data around so as to create the dependency that you want.
--
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