-
Notifications
You must be signed in to change notification settings - Fork 16
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 intermediate bookmarking implementation #40
base: master
Are you sure you want to change the base?
Conversation
Please add associated JIRA ticket with this PR |
|
||
if next(iter(self.replication_keys or []), None): | ||
return state.get('bookmarks', {}).get(stream, default), 0 | ||
else: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
won't need this else
statement
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
tap_activecampaign/streams.py
Outdated
self.stream_name, bookmark_field, last_datetime)) | ||
now_datetime = utils.now() | ||
last_dttm = strptime_to_utc(last_datetime) | ||
LOGGER.info('stream: {}, bookmark_field: {}, last_datetime: {}, offset: {}'.format( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use f-strings instead of format.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
Addressed the review comments. |
Verified interrupted sync and intermediate bookmarking at my end. Apart from my previous comments everything looks fine. |
Description of change
Support ticket TDL-25734:
Tap was writing stream bookmark after complete extraction of all stream records. Because of this issue, in some cases we observed that long running historical syncs, after interruption were restarting from the start data and re-extracting duplicate records.
To fix this issue,
offset_bookmark_limit=1000
records.offset_bookmark_limit=1000
recordsThis will allow interrupted extractions resume from the last bookmark value and reduce duplicate record extraction.
Manual QA steps
offset_bookmark_limit
valuesRisks
Rollback steps