Airflow: 2016 Roadmap Item : Allow depends_on_past=True for Skipped tasks

Created on 16 Mar 2016  路  5Comments  路  Source: apache/airflow

There is a problem with tasks that have been skipped and have depends_on_past=True. Future instances of the task won't run. This does not make sense. Instead, if a previous instance of a task has been skipped and depends_on_past=True, schedule the task anyway -- in essence, treat a SKIPPED as a SUCCESS.

That is what this issue address.

There are many cases where would like to mark a task/DAG as skipped

In order to tackle all of these, we need to modify the system to treat Skipped as Success. Additionally, we may want to describe each of these skipped differently (e.g. skipped_condtional, skipped_data_issue, skipped_only_run_latest)

cc @mistercrunch @bolkedebruin @criccomini

Roadmap bug

Most helpful comment

@griffinqiu Pull the latest and let me know if you have other issues.

All 5 comments

+10086

For my case:
Some of tasks run as hourly and some tasks only run as daily in one DAG. The reason of set depends_on_past to True BCS the today's DAGRUN depend on yesterday result.

914

screenshot 2016-03-18 07 15 49

This issue is now fixed. I will be submitting a PR soon.

@griffinqiu Pull the latest and let me know if you have other issues.

Hi, I really need to use the only_run_latest feature, but I do not know how to use is in my code. Is this a feature has not beed developed or I just missed it? Can you give me a example of task declaration ? If this feature is not developed, how can I implement my code to realize the only_run_latest feature? Thanks!

Was this page helpful?
0 / 5 - 0 ratings