Is it right that `get_updated_state` returned stat...
# ask-community-for-troubleshooting
v
Is it right that
get_updated_state
returned state doesn’t do anything until is using in update params in url? or it skips updating items that are under the latest state?
1
s
get_updated_state
is used by the CDK to keep track of the latest state. It is then used to save/checkpoint the state emit a STATE message as described by the Airbyte specification. Emitting a STATE message signals to Airbyte that once these records have been written to the destination, the state should be input to the connector the next time it runs. This is useful both for general incremental sync but also for resuming a failed sync. Let’s say you sync 90% of data then the connector fails, then checkpointing state. To control how state is checkpointed you can either set the
state_checkpoint_interval
property or override the
stream_slices
method for very granular control over when state is saved
the state passed into params/headers/etc… methods is the state input to the connector at the beginning of the sync
v
thanks!