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

fix date chunking for bulk rest-api syncs #60

Merged
merged 2 commits into from
Dec 12, 2018

Conversation

nick-mccoy
Copy link
Contributor

When a bulk REST query times out, the tap cuts the date range in half and tries again. However, after syncing the records, the tap does not attempt to sync the second half of the original window.

Since the tap only updates bookmarks when it gets records, in the event that no records are received in the first half of the date range, the bookmark will not advance, and the tap will never try to sync records in the second half of the date range.

This PR adds a check to see if the date range was chunked, and if it was, it queries the second half of the chunked date range.

@nick-mccoy nick-mccoy merged commit 26619ef into master Dec 12, 2018
@nick-mccoy nick-mccoy deleted the fix_date_chunking_rest_bulk branch December 12, 2018 18:58
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.

1 participant