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

Update state every 10k records for users steam #140

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tap_zendesk/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ def sync_stream(state, start_date, instance):
# We may find out that there exists a sync that takes too long and can never emit a bookmark
# but we don't know if we can guarentee the order of emitted records.

# TDL-23750 users stream was unable to complete sync in 24 hrs
if stream.tap_stream_id == "users" and counter.value % 10000 == 0:
singer.write_state(state)

if instance.replication_method == "INCREMENTAL":
singer.write_state(state)

Expand Down