-
Notifications
You must be signed in to change notification settings - Fork 71
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 the ability to resume bulk jobs #22
Conversation
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.
As discussed.
tap_salesforce/__init__.py
Outdated
rec[k] = val | ||
|
||
return rec | ||
job_id = state.get('bookmarks', {}).get(catalog_entry['tap_stream_id'], {}).get('JobID', None) |
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.
Same code as get_bookmark()
tap_salesforce/sync.py
Outdated
|
||
def resume_syncing_bulk_query(sf, catalog_entry, job_id, state, counter): | ||
bulk = Bulk(sf) | ||
current_bookmark = state['bookmarks'].get(catalog_entry['tap_stream_id'], {}).get('JobHighestSystemModstamp') or sf.get_start_date(state, catalog_entry) |
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.
get_bookmark
tap_salesforce/sync.py
Outdated
|
||
state = singer.write_bookmark(state, | ||
catalog_entry['tap_stream_id'], | ||
'JobHighestSystemModstamp', |
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.
JobHighestBookmarkSeen?
No description provided.