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

Disabling backfill functionality? #58

Closed
martingrayson opened this issue Jun 22, 2015 · 2 comments
Closed

Disabling backfill functionality? #58

martingrayson opened this issue Jun 22, 2015 · 2 comments

Comments

@martingrayson
Copy link

If I have a process that needs to run daily regardless of input parameters, for example a process that bulk loads a table and doesn't depend on delta data, is there a way of preventing backfills running a dag multiple times?

If I have a dag with for arguments sake, one task, can I make a backfill with a weeks' date range only run the task once rather than 7 times?

@mistercrunch
Copy link
Member

Right, this is a common use case, look for an upcoming only_run_latest flag in BaseOperator, implemented in a similar way as depends_on_past.

It the meantime, you may want to run an individual backfill on that task with a --mark_success flag on start_date to end_date-1, then run this task individually for end_date, and then proceed to run your backfill, which will skip all the previously succeeded tasks.

only_run_latest will move all that complexity to BackfillJob and to the scheduler who will be able to skip runs when possible.

@mistercrunch
Copy link
Member

I captured the essence of this in: #59, closing this one

mobuchowski pushed a commit to mobuchowski/airflow that referenced this issue Jan 4, 2022
* Add change in import to usage section and list lib. features

Signed-off-by: wslulciuc <[email protected]>

* Remove whitespace

Signed-off-by: wslulciuc <[email protected]>

* List run-level metadat collected

Signed-off-by: wslulciuc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants