Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task dependency upstream/downstream setting error #35062

Closed
2 tasks done
MemphisMeng opened this issue Oct 19, 2023 · 2 comments · Fixed by #35075
Closed
2 tasks done

Task dependency upstream/downstream setting error #35062

MemphisMeng opened this issue Oct 19, 2023 · 2 comments · Fixed by #35075
Assignees

Comments

@MemphisMeng
Copy link

What do you see as an issue?

I'm using Airflow 2.7.2 and following the documentation to define the dependency relationship relationship between tasks. I tried the explicit way suggested by the doc but it failed.

first_task.set_downstream(second_task, third_task)
third_task.set_upstream(fourth_task)

Solving the problem

It seems it doesn't work if we want to attach multiple tasks downstream to one in a one-line manner. So I suggest currently we should break it down. Or resolve it.

first_task.set_downstream(second_task)
first_task.set_downstream(third_task)

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@MemphisMeng MemphisMeng added kind:bug This is a clearly a bug kind:documentation needs-triage label for new issues that we didn't triage yet labels Oct 19, 2023
@Taragolis Taragolis removed the needs-triage label for new issues that we didn't triage yet label Oct 19, 2023
@Taragolis
Copy link
Contributor

Yeah, it is a wrong example in the doc, it should be:

first_task.set_downstream([second_task, third_task])

@shubhamraj-git
Copy link
Contributor

I am interested in this issue. Could you please assign me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants