Skip to content

🐛 Source Salesforce: Add retry on REST API - #36885

Merged
Maxime Carbonneau-Leclerc (maxi297) merged 3 commits into
masterfrom
maxi297/salesforce_retry_on_fetch_next_page_for_chunk
Apr 8, 2024
Merged

Maxime Carbonneau-Leclerc (maxi297) merged 3 commits into
masterfrom
maxi297/salesforce_retry_on_fetch_next_page_for_chunk

Conversation

@maxi297

@maxi297 Maxime Carbonneau-Leclerc (maxi297) commented Apr 8, 2024

Copy link
Copy Markdown
Contributor

We have added retries on 406 on the https://github.com/airbytehq/airbyte/blob/4ac078b3826891ca33bbe394bdaa9891f0a28bf9/airbyte-integrations/connectors/source-salesforce/source_salesforce/rate_limiting.py#L30-L32. We are however still seeing syncs fail because of that. Checking all the cases on April 5th and 6th, there all occur in _fetch_next_page_for_chunk. Hence, I'll blindly add retry there.

This can be safely reverted

@vercel

vercel Bot commented Apr 8, 2024

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview Apr 8, 2024 3:25pm

@bazarnov Baz (bazarnov) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@octavia-squidington-iii Octavia Squidington III (octavia-squidington-iii) added the area/documentation Improvements or additions to documentation label Apr 8, 2024
@@ -0,0 +1,39 @@
# Copyright (c) 2024 Airbyte, Inc., all rights reserved.

from datetime import datetime

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will clash with the source-salesforce part of https://github.com/airbytehq/airbyte/pull/36811/files#diff-82cd2ba6c00f795c829bdc86d1f039933a6168b6c1c6c1a4b89226c7b5c6bf67 but that shouldn't be too much of a hassle

@maxi297 Maxime Carbonneau-Leclerc (maxi297) changed the title Add retry on _fetch_next_page_for_chunk 🐛 Source Salesforce: Add retry on REST API Apr 8, 2024
@maxi297
Maxime Carbonneau-Leclerc (maxi297) deleted the maxi297/salesforce_retry_on_fetch_next_page_for_chunk branch April 8, 2024 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/connectors Connector related issues area/documentation Improvements or additions to documentation connectors/source/salesforce

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants