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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]