Skip to content

Commit

Permalink
Source Salesforce: handle rate limit for bulk operations (#24690)
Browse files Browse the repository at this point in the history
* Source Salesforce: handle rate limit for bulk operations

* Source Salesforce: bump version
  • Loading branch information
roman-yermilov-gl committed Mar 31, 2023
1 parent 855682d commit 15f3ff6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Expand Up @@ -13,5 +13,5 @@ RUN pip install .

ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=2.0.7
LABEL io.airbyte.version=2.0.8
LABEL io.airbyte.name=airbyte/source-salesforce
Expand Up @@ -347,6 +347,11 @@ def create_stream_job(self, query: str, url: str) -> Optional[str]:
f"The stream '{self.name}' is not queryable, "
f"sobject options: {self.sobject_options}, error message: '{error_message}'"
)
elif error.response.status_code == codes.BAD_REQUEST and error_code == "LIMIT_EXCEEDED":
self.logger.error(
f"Cannot receive data for stream '{self.name}' ,"
f"sobject options: {self.sobject_options}, error message: '{error_message}'"
)
else:
raise error
else:
Expand Down
1 change: 1 addition & 0 deletions docs/integrations/sources/salesforce.md
Expand Up @@ -129,6 +129,7 @@ Now that you have set up the Salesforce source connector, check out the followin

| Version | Date | Pull Request | Subject |
|:--------|:-----------|:---------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------|
| 2.0.8 | 2023-03-30 | [24690](https://github.com/airbytehq/airbyte/pull/24690) | Handle rate limit for bulk operations |
| 2.0.7 | 2023-03-14 | [24071](https://github.com/airbytehq/airbyte/pull/24071) | Remove regex pattern for start_date, use format validation instead |
| 2.0.6 | 2023-03-03 | [22891](https://github.com/airbytehq/airbyte/pull/22891) | Specified date formatting in specification |
| 2.0.5 | 2023-03-01 | [23610](https://github.com/airbytehq/airbyte/pull/23610) | Handle different Salesforce page size for different queries |
Expand Down

0 comments on commit 15f3ff6

Please sign in to comment.