Skip to content

Commit

Permalink
Source Slack: retry timeout error (#21321)
Browse files Browse the repository at this point in the history
* Source Slack: retry timeout error

* Source Slack: update docs

* Source Slack: update retry

* auto-bump connector version

Co-authored-by: Octavia Squidington III <[email protected]>
  • Loading branch information
artem1205 and octavia-squidington-iii authored Jan 13, 2023
1 parent 0b1e34a commit 19b5375
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1582,7 +1582,7 @@
- name: Slack
sourceDefinitionId: c2281cee-86f9-4a86-bb48-d23286b4c7bd
dockerRepository: airbyte/source-slack
dockerImageTag: 0.1.20
dockerImageTag: 0.1.21
documentationUrl: https://docs.airbyte.com/integrations/sources/slack
icon: slack.svg
sourceType: api
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13400,7 +13400,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-slack:0.1.20"
- dockerImage: "airbyte/source-slack:0.1.21"
spec:
documentationUrl: "https://docs.airbyte.com/integrations/sources/slack"
connectionSpecification:
Expand Down
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-slack/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ COPY main.py ./
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=0.1.20
LABEL io.airbyte.version=0.1.21
LABEL io.airbyte.name=airbyte/source-slack
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ def backoff_time(self, response: requests.Response) -> Optional[float]:
def data_field(self) -> str:
"""The name of the field in the response which contains the data"""

def should_retry(self, response: requests.Response) -> bool:
return response.status_code == requests.codes.REQUEST_TIMEOUT or super().should_retry(response)


class ChanneledStream(SlackStream, ABC):
"""Slack stream with channel filter"""
Expand Down
1 change: 1 addition & 0 deletions docs/integrations/sources/slack.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ It is recommended to sync required channels only, this can be done by specifying

| Version | Date | Pull Request | Subject |
|:--------|:-----------|:---------------------------------------------------------|:----------------------------------------------------|
| 0.1.21 | 2023-01-12 | [21321](https://github.com/airbytehq/airbyte/pull/21321) | Retry Timeout error |
| 0.1.20 | 2022-12-21 | [20767](https://github.com/airbytehq/airbyte/pull/20767) | Update schema |
| 0.1.19 | 2022-12-01 | [19970](https://github.com/airbytehq/airbyte/pull/19970) | Remove OAuth2.0 broken `refresh_token` support |
| 0.1.18 | 2022-09-28 | [17315](https://github.com/airbytehq/airbyte/pull/17315) | Always install latest version of Airbyte CDK |
Expand Down

0 comments on commit 19b5375

Please sign in to comment.