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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Source Salesforce: Add retry on REST API #36885

Merged

Conversation

maxi297
Copy link
Contributor

@maxi297 maxi297 commented Apr 8, 2024

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

Copy link

vercel bot commented Apr 8, 2024

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

Copy link
Collaborator

@bazarnov bazarnov left a comment

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 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
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 maxi297 changed the title Add retry on _fetch_next_page_for_chunk 馃悰 Source Salesforce: Add retry on REST API Apr 8, 2024
@maxi297 maxi297 merged commit 0f1eeb1 into master Apr 8, 2024
29 checks passed
@maxi297 maxi297 deleted the maxi297/salesforce_retry_on_fetch_next_page_for_chunk branch April 8, 2024 15:45
markcusack pushed a commit to markcusack/airbyte that referenced this pull request Apr 9, 2024
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.

None yet

3 participants