-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
Clearing a subdag task leaves parent dag in the failed state #15374
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! |
@ctimbreza, I wasn't able to reproduce this in master naively. Is there anything in the webserver log that might be helpful? Do you have a simple DAG that reproduces it? |
Here is the dag that I used to reproduce the issue. Subdag_1 task_2 is configured to randomly fail to help setup the scenario for this issue.
|
Hi @ctimbreza, welcome to Airflow! Before solving your specific issue with SubDagOperator, I wonder if you have considered using |
@ctimbreza looks like this issue is resolved in #14776, can you verify? |
@xinbinhuang Thanks for your suggestion on TaskGroup. We are look at TaskGroup for new dags going forward. However we do have a lot of existing dags currently running on airflow1 that we would like to move over to airflow2 as is. |
@ephraimbuddy Thanks for pointing me to #14776. Looks like this is targeted for release 2.0.2 which is not out yet. I spent a little time today to see if I could run airflow locally to verify and was looking at the breeze development environment. So far it has been pretty straightforward to setup, however after launching the environment (breeze start-airflow) and accessing the UI (http://127.0.0.1:28080/home) I cannot seem to interact with the UI. My dag is shown but none of the UI links are working. |
Probably there's no user, you can create a user in breeze environment, you just have to run the create user command: You can drop into breeze environment with : |
It's likely that the frontend assets haven't been build (gone into this issue recently). Can you try, inside breeze, |
I mean either
You need to start both the
|
Hi folks. Looks like #14776 did not resolve this issue. I am still able to reproduce it on Airflow 2.0.2 |
@ctimbreza @ephraimbuddy |
Closes: apache/airflow#15374 This pull request follows apache/airflow#14776. Clearing a subdag with Downstream+Recursive does not automatically set the state of the parent dag so that the downstream parent tasks can execute. GitOrigin-RevId: a4211e276fce6521f0423fe94b01241a9c43a22c
Closes: apache/airflow#15374 This pull request follows apache/airflow#14776. Clearing a subdag with Downstream+Recursive does not automatically set the state of the parent dag so that the downstream parent tasks can execute. GitOrigin-RevId: a4211e276fce6521f0423fe94b01241a9c43a22c
Closes: apache/airflow#15374 This pull request follows apache/airflow#14776. Clearing a subdag with Downstream+Recursive does not automatically set the state of the parent dag so that the downstream parent tasks can execute. GitOrigin-RevId: a4211e276fce6521f0423fe94b01241a9c43a22c
Closes: apache/airflow#15374 This pull request follows apache/airflow#14776. Clearing a subdag with Downstream+Recursive does not automatically set the state of the parent dag so that the downstream parent tasks can execute. GitOrigin-RevId: a4211e276fce6521f0423fe94b01241a9c43a22c
Closes: apache/airflow#15374 This pull request follows apache/airflow#14776. Clearing a subdag with Downstream+Recursive does not automatically set the state of the parent dag so that the downstream parent tasks can execute. GitOrigin-RevId: a4211e276fce6521f0423fe94b01241a9c43a22c
Closes: apache/airflow#15374 This pull request follows apache/airflow#14776. Clearing a subdag with Downstream+Recursive does not automatically set the state of the parent dag so that the downstream parent tasks can execute. GitOrigin-RevId: a4211e276fce6521f0423fe94b01241a9c43a22c
Closes: apache/airflow#15374 This pull request follows apache/airflow#14776. Clearing a subdag with Downstream+Recursive does not automatically set the state of the parent dag so that the downstream parent tasks can execute. GitOrigin-RevId: a4211e276fce6521f0423fe94b01241a9c43a22c
Closes: apache/airflow#15374 This pull request follows apache/airflow#14776. Clearing a subdag with Downstream+Recursive does not automatically set the state of the parent dag so that the downstream parent tasks can execute. GitOrigin-RevId: a4211e276fce6521f0423fe94b01241a9c43a22c
Closes: apache/airflow#15374 This pull request follows apache/airflow#14776. Clearing a subdag with Downstream+Recursive does not automatically set the state of the parent dag so that the downstream parent tasks can execute. GitOrigin-RevId: a4211e276fce6521f0423fe94b01241a9c43a22c
Closes: apache/airflow#15374 This pull request follows apache/airflow#14776. Clearing a subdag with Downstream+Recursive does not automatically set the state of the parent dag so that the downstream parent tasks can execute. GitOrigin-RevId: a4211e276fce6521f0423fe94b01241a9c43a22c
Closes: apache/airflow#15374 This pull request follows apache/airflow#14776. Clearing a subdag with Downstream+Recursive does not automatically set the state of the parent dag so that the downstream parent tasks can execute. GitOrigin-RevId: a4211e276fce6521f0423fe94b01241a9c43a22c
Closes: apache/airflow#15374 This pull request follows apache/airflow#14776. Clearing a subdag with Downstream+Recursive does not automatically set the state of the parent dag so that the downstream parent tasks can execute. GitOrigin-RevId: a4211e276fce6521f0423fe94b01241a9c43a22c
Closes: apache/airflow#15374 This pull request follows apache/airflow#14776. Clearing a subdag with Downstream+Recursive does not automatically set the state of the parent dag so that the downstream parent tasks can execute. GitOrigin-RevId: a4211e276fce6521f0423fe94b01241a9c43a22c
Closes: apache/airflow#15374 This pull request follows apache/airflow#14776. Clearing a subdag with Downstream+Recursive does not automatically set the state of the parent dag so that the downstream parent tasks can execute. GitOrigin-RevId: a4211e276fce6521f0423fe94b01241a9c43a22c
Closes: apache/airflow#15374 This pull request follows apache/airflow#14776. Clearing a subdag with Downstream+Recursive does not automatically set the state of the parent dag so that the downstream parent tasks can execute. GitOrigin-RevId: a4211e276fce6521f0423fe94b01241a9c43a22c
Apache Airflow version:
2.0.1
Kubernetes version:
Server Version: version.Info{Major:"1", Minor:"18+", GitVersion:"v1.18.9-eks-d1db3c", GitCommit:"d1db3c46e55f95d6a7d3e5578689371318f95ff9", GitTreeState:"clean", BuildDate:"2020-10-20T22:18:07Z", GoVersion:"go1.13.15", Compiler:"gc", Platform:"linux/amd64"}
What happened:
Clearing a failed subdag task with Downstream+Recursive does not automatically set the state of the parent dag to 'running' so that the downstream parent tasks can execute.
The work around is to manually set the state of the parent dag to running after clearing the subdag task
What you expected to happen:
With airflow version 1.10.4 the parent dag was automatically set to 'running' for this same scenario
How to reproduce it:
The text was updated successfully, but these errors were encountered: