Skip to content
This repository has been archived by the owner on Oct 24, 2022. It is now read-only.

Prevent batch harvests from requesting invalid dates #281

Merged
merged 1 commit into from
Jul 15, 2015

Conversation

JPrevost
Copy link
Member

This prevents batch harvests from requesting a date that is older than
yesterday with the assumption that it’s safest to not request an OAI
feed for today as more data may be added later we’d miss. I’m not
entirely sure that’s valid logic, but this seems safe. The harvester
increments the updated date hence the need to make sure it is less than
yesterday (i.e. updated needs to be two days ago to actually run which
would then get incremented by 1 to be a harvest for yesterday… clear as
mud?).

Admin kicked off harvests and knips are not limited by date. Only the
batch starter.

closes #240

@JPrevost JPrevost force-pushed the 240_check_date_on_batch_harvests branch from d605bcc to 75a359d Compare July 14, 2015 20:55
@JPrevost
Copy link
Member Author

@richardrodgers if you happen to have time for a quick review, this should address the concern you noted. Thanks!

This prevents batch harvests from requesting date that is older than
yesterday with the assumption that it’s safest to not request an OAI
feed for today as more data may be added later we’d miss. I’m not
entirely sure that’s valid logic, but this is safe. The harvester
increments the updated date hence the need to make sure it is less than
yesterday (i.e. updated needs to be two days ago to actually run which
would then get incremented by 1 to be a harvest for yesterday… clear as
mud).

Admin kicked off harvests and knips are not limited by date. Only the
batch starter.

closes #240
@JPrevost JPrevost force-pushed the 240_check_date_on_batch_harvests branch from 75a359d to d6a5136 Compare July 15, 2015 13:12
JPrevost added a commit that referenced this pull request Jul 15, 2015
…vests

Prevent batch harvests from requesting invalid dates
@JPrevost JPrevost merged commit 893be37 into master Jul 15, 2015
@JPrevost JPrevost deleted the 240_check_date_on_batch_harvests branch July 15, 2015 13:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ensure Harvests don't try to run for future dates
1 participant