Skip to content

depends_on_past issue on 1.6.1 #914

Closed

Description

@griffinqiu

2016-01-26_091826

The task will be stuck when the next of the past have been skipped. I understand the mean of depends_on_past and wait_for_downstream. But the skipped should be the logically be expected. The future task should be run instead of stop.

Activity

  1. mistercrunch commented on Jan 28, 2016

    @mistercrunch
    Member

    You probably shouldn't use depends_on_past no a branching scheme. Should a skipped be considered ok or generate another skipped status? People may want either behavior.

  2. nonlyli commented on Feb 18, 2016

    @nonlyli

    @mistercrunch
    I think "skip" or "sucess" status means able to start another task in the new Dag.
    Other status "running", "failed", "up_to_retry" means need wait the same task in prev Dag.

  3. mistercrunch commented on Feb 19, 2016

    @mistercrunch
    Member

    But why depends_on_past of something that can be skipped? Wontfix. Will review your PR though if you guys think this is important.

  4. griffinqiu commented on Feb 26, 2016

    @griffinqiu
    Author

    @mistercrunch I think this is useful.

    You could image a scenario. I need deal some data timely (Such as 30 minutes). I can get the results of the latest after DAG run one round. So I need control this DAG as singleton(add depends_on_past). For some fault the DAG may behind schedule. I just need run once after the fault is fixed in fact. I may add some logic to skip the behind schedule tasks of the DAG. So the skip is my logic for schedule as @nonlyli mentioned "I think "skip" or "sucess" status means able to start another task in the new Dag."

    #1033

  5. griffinqiu commented on Feb 26, 2016

    @griffinqiu
    Author

    20160226173639

  6. griffinqiu commented on Feb 26, 2016

    @griffinqiu
    Author

    Right now, I just can set the max_active_runs to 1 for solve this scenario. T_T

  7. griffinqiu commented on Mar 16, 2016

    @griffinqiu
    Author
  8. reopened this on Mar 18, 2016
  9. r39132 commented on Mar 18, 2016

    @r39132
    Contributor

    @griffinqiu We will support this behavior. I just fixed an issue related to depends_on_past=True and Skipped states, but I'm not sure it will fix wait_for_downstream. Can you pull master after #1169 is merged and ping me on gitter with whether this is fixed or needs an extra change?

  10. r39132 commented on Mar 19, 2016

    @r39132
    Contributor

    This is now fixed in the PR above and tracked in the issue : #1155

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions