<@U04S8PLJWMT> Hi im using Shopify v3.0.7 for my c...
# ask-ai
s
@kapa.ai Hi im using Shopify v3.0.7 for my connector. "configuration" => {"shop" => "shop", "start_date" => "2024-01-01", "credentials" => {"auth_method" => "api_password", "api_password" => "api_password"}, "job_checkpoint_interval" => 150000}, in my configuration i have job_checkpoint_interval but it doesnt seem to be doing anything to the job when sycning. I still see it going over 200000 records and doesnt stop until the end. what is the proper use of job_checkpoint_interval and how would it reflect on my connector
k
The
job_checkpoint_interval
parameter in the Shopify source connector configuration is intended to control how often the connector checkpoints (saves) its state during a sync, based on the number of rows collected. For example, if you set
job_checkpoint_interval
to 150,000, the connector should checkpoint after every 150,000 records processed. However, from your observation, it seems the connector is not checkpointing as expected and continues processing beyond 200,000 records before checkpointing or stopping. This could be due to how the Shopify connector implements checkpointing for different streams or how it batches records internally. According to the Shopify connector documentation,
job_checkpoint_interval
is described as: > BULK Job checkpoint (rows collected): integer > This controls how often the connector checkpoints during a bulk job, based on the number of rows collected. > [Shopify Source Reference](https://docs.airbyte.com/integrations/sources/shopify#reference) But, as seen in user reports and logs, the actual checkpointing behavior may depend on the specific stream and how the connector handles batching and state updates internally. For example, in some logs, you can see messages like:
Copy code
Stream: `customer_address` requesting BULK Job for period: ... The BULK checkpoint after `15000` lines. ... Stream: `product_images` requesting BULK Job for period: ... The BULK checkpoint after `200000` lines.
This suggests that the checkpoint interval is being set per stream and per bulk job, but the actual checkpointing may not always align exactly with the configured value, especially if the stream's batching logic or Shopify's API responses do not match the interval precisely. The connector may only checkpoint at the end of a bulk job or after a slice is fully processed, rather than strictly after every N records, depending on implementation details and the stream in question [Shopify Source Reference](https://docs.airbyte.com/integrations/sources/shopify#reference). In summary: -
job_checkpoint_interval
is meant to control how often state is checkpointed during a bulk job, based on rows collected. - The actual checkpointing may not occur exactly at the specified interval if the connector processes data in larger batches or slices. - If you are seeing the connector process more records than your interval before checkpointing, it may be due to how the connector batches records or how Shopify's API delivers data. If you need more granular checkpointing, you may need to review the connector's implementation or open an issue with the Airbyte team for clarification or a potential bug fix, as this behavior may not be fully configurable from the UI or config alone. If you need more technical details on how checkpointing works in Airbyte connectors, see the documentation on [checkpointing state](https://docs.airbyte.com/platform/connector-development/cdk-python/incremental-stream#checkpointing-state). Let me know if you need more details or want to troubleshoot a specific stream!
s
@kapa.ai what does checkpointed means in this context ? What is the process of checkpointing
k
A message from kapa.ai
In the context of Airbyte, checkpointing refers to the process of saving the current state of a sync at certain intervals. This "state" is a record of how much data has already been replicated, so that if a sync fails or is interrupted, Airbyte can resume from the last checkpoint rather than starting over from the beginning. What does "checkpointed" mean? When data is "checkpointed," it means that Airbyte has saved a snapshot of the sync's progress up to that point. This snapshot (the "state") is emitted by the Source connector and later used to resume the sync from where it left off, avoiding reprocessing already-synced data. What is the process of checkpointing? - During a sync, the Source connector emits state messages at certain intervals (e.g., after a number of records, or after a stream slice is fully read). - These state messages are wrapped in an [AirbyteStateMessage](https://docs.airbyte.com/platform/understanding-airbyte/airbyte-protocol#airbytestatemessage). - The Destination connector only acknowledges a state as "committed" once all records up to that state have been successfully written to the destination. - If a sync fails, the next sync will use the last committed state to resume, ensuring no data is lost or duplicated. Checkpointing enables: - Incremental syncs (only new/changed data is replicated) - Partial success (if a sync fails, only unsynced data needs to be retried, not the entire dataset) For more details, see the Airbyte documentation on [State & Checkpointing](https://docs.airbyte.com/platform/understanding-airbyte/airbyte-protocol#state--checkpointing) and [Incremental Streams](https://docs.airbyte.com/platform/connector-development/cdk-python/incremental-stream#checkpointing-state).
s
so when does the connector stop the job and continue in another job syncing ? I want to limit that so I can have data progresivly and not rely on a single giagantic job
@kapa.ai so when does the connector stop the job and continue in another job syncing ? I want to limit that so I can have data progresivly and not rely on a single giagantic job
k
A message from kapa.ai
New message text here