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

Add 'ignore_archives' flag to functions that fetch runs #64

Merged
merged 4 commits into from
Jan 24, 2020

Conversation

as2388
Copy link
Member

@as2388 as2388 commented Jan 20, 2020

Defaults to False, so default behaviour is to always fetch from archives.

The intention here is that pipelines can set ignore_archives to True when incrementally fetching new data for a dataset they fetched in the past. This is a cheap and simple way to work around the performance problem of pipelines going to archives if the last message received was more than 3 months ago. Of course, this would cause us problems if more than 3 months pass between a pipeline run and we're fetching a flow that had some data in archives 3 months ago, but this is extremely unlikely to happen in practice. This is because we run pipelines frequently then terminate flows forever, and in any case can workaround by removing the Raw Data folder.

(In other words, this prevents the incremental fetching performance problem originally described here: #60).

For example usage, see AfricasVoices/Project-IOM#19

@as2388 as2388 merged commit 7f01306 into master Jan 24, 2020
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

Successfully merging this pull request may close these issues.

3 participants