You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Skipped state isn't propagated downstream, resulting in DAG runs stuck in running state #680
Referring to #436, which was recently closed. I believe that should be reopened and linked to this issue.
I am seeing 2 sorts of broken behaviour around branching and joining. This bug captures the right side of the decision, and #685 captures the left side of the decision.
I am seeing the following behavior :
The DAG runs are complete in the picture below, except for the one that failed. I'm interested in the ones which should be skipped, but still show empty blank squares. There are 3 of them. These should all be skipped.
The last task in the DAG is send_email_notification_flow_successful, which completed. The branch operator took the branch that skips model building and immediately called aggregate_data_spark_job. When it did this, it skipped build_sender_models_spark_job and its direct downstream dependents.
Here's the DAG view :
Unfortunately, the state is not being recorded as skipped for those descendants (e.g. build_cdd_..., build_dom_rep..., etc...) and those are shown as permanently unrun, leaving the DAGRUN in a "running state" forever!
I am including the task definition of the aggregate_data_spark_job below, where I use the trigger_rule='one_success' :
Can you test that it is still the case on 1.6.2? I reviewed the related 1.6.2 code and I can't think of any reason why these task instances wouldn't get skipped.
I didn't see a tag for 1.6.2, but I pulled head from master. I confirmed the same broken behavior. There is additionally another problem as well, which I am tracking in a separate bug : #685
changed the title [-]Join Operator not working - DAG runs in permanent "Running" state[/-][+]Branch and Join Operators not working - DAG runs in permanent "Running" state[/+]on Nov 23, 2015
changed the title [-]Branch and Join Operators not working - DAG runs in permanent "Running" state[/-][+]Skipped state isn't propagated downstream, resulting in DAG runs stuck in running state[/+]on Nov 23, 2015
Activity
mistercrunch commentedon Nov 23, 2015
Can you test that it is still the case on
1.6.2? I reviewed the related 1.6.2 code and I can't think of any reason why these task instances wouldn't get skipped.r39132 commentedon Nov 23, 2015
I didn't see a tag for 1.6.2, but I pulled head from master. I confirmed the same broken behavior. There is additionally another problem as well, which I am tracking in a separate bug : #685
[-]Join Operator not working - DAG runs in permanent "Running" state[/-][+]Branch and Join Operators not working - DAG runs in permanent "Running" state[/+][-]Branch and Join Operators not working - DAG runs in permanent "Running" state[/-][+]Skipped state isn't propagated downstream, resulting in DAG runs stuck in running state[/+]r39132 commentedon Nov 24, 2015
After disabling depends_on_past (i.e. setting it to False), this worked for me.
Some documentation has been added at a3dacf6
r39132 commentedon Nov 24, 2015
The issue is that "depends_on_past:True" does not currently work well with branch operators.
r39132 commentedon Mar 16, 2016
This will be tracked in #1155 so closing this!