@kapa.ai
how can i prevent from my python connector to stop running if one stream is failing?
k
kapa.ai
09/01/2025, 6:52 AM
Short answer: there’s no documented, general switch to keep a Python source running when a stream fails. What you can do based on the docs: - In the Connector Builder UI, you can configure error handlers per stream to IGNORE certain error responses so the connector proceeds to the next page/slice/stream instead of failing the whole sync (set response filters and “Then execute action” to IGNORE where appropriate) ([Then execute action](https://docs.airbyte.com/platform/connector-development/connector-builder-ui/error-handling#then-execute-action)). - You can also chain multiple error handlers and have the first matching one determine behavior, which lets you selectively retry or ignore errors (e.g., ignore 404s but retry 5xx) ([Multiple error handlers](https://docs.airbyte.com/platform/connector-development/connector-builder-ui/error-handling#multiple-error-handlers); [Error Handling overview](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/error-handling)). - For rate limits, use backoff strategies like “Wait Time Extracted from Response Header” so transient failures don’t abort the sync ([Wait time from header](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/error-handling#wait-time-extracted-from-response-header)). Limitations/uncertainty: - The knowledge sources don’t document a Python CDK-level setting to “continue other streams if one fails.” A forum thread mentions “continue a sync after failure of a stream” as a feature in progress, without current availability details ([Forum thread](https://discuss.airbyte.io/t/1393)). - If you’re building purely with the Python CDK, the sources don’t provide a code pattern to isolate a failing stream so the overall job keeps running. If you can use the Connector Builder, configure stream-level error handlers with IGNORE for non-critical errors to avoid failing the whole sync. For Python CDK specifics, the knowledge sources do not explicitly mention how to keep the connector running when a stream fails.