Skip to content

Commit

Permalink
🎉 Source Shopify: dynamically adjust the size of the slice for Bulk…
Browse files Browse the repository at this point in the history
… API streams (#36788)
  • Loading branch information
bazarnov committed Apr 17, 2024
1 parent 0f3ab40 commit dccb6c0
Show file tree
Hide file tree
Showing 14 changed files with 549 additions and 184 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ acceptance_tests:
configured_catalog_path: "integration_tests/configured_catalog.json"
future_state:
future_state_path: "integration_tests/abnormal_state.json"
timeout_seconds: 7200
timeout_seconds: 8400
full_refresh:
tests:
- config_path: "secrets/config.json"
Expand Down
4 changes: 2 additions & 2 deletions airbyte-integrations/connectors/source-shopify/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ data:
connectorSubtype: api
connectorType: source
definitionId: 9da77001-af33-4bcd-be46-6252bf9342b9
dockerImageTag: 2.0.4
dockerImageTag: 2.0.5
dockerRepository: airbyte/source-shopify
documentationUrl: https://docs.airbyte.com/integrations/sources/shopify
githubIssueLabel: source-shopify
icon: shopify.svg
license: ELv2
maxSecondsBetweenMessages: 7200
maxSecondsBetweenMessages: 21600
name: Shopify
remoteRegistries:
pypi:
Expand Down
159 changes: 78 additions & 81 deletions airbyte-integrations/connectors/source-shopify/poetry.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions airbyte-integrations/connectors/source-shopify/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
version = "2.0.4"
version = "2.0.5"
name = "source-shopify"
description = "Source CDK implementation for Shopify."
authors = [ "Airbyte <contact@airbyte.io>",]
Expand All @@ -17,7 +17,7 @@ include = "source_shopify"

[tool.poetry.dependencies]
python = "^3.9,<3.12"
airbyte-cdk = ">=0.73.0"
airbyte-cdk = "^0"
sgqlc = "==16.3"
graphql-query = "^1.1.1"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@

class ShopifyBulkExceptions:
class BaseBulkException(AirbyteTracedException):
"""Base BULK Job Exception"""

failure_type: FailureType = FailureType.config_error

def __init__(self, message: str, **kwargs) -> None:
super().__init__(internal_message=message, failure_type=FailureType.config_error, **kwargs)
super().__init__(internal_message=message, failure_type=self.failure_type, **kwargs)

class BulkJobError(BaseBulkException):
"""Raised when there are BULK Job Errors in response"""
Expand All @@ -30,6 +34,11 @@ class BulkRecordProduceError(BaseBulkException):
class BulkJobFailed(BaseBulkException):
"""Raised when BULK Job has FAILED status"""

class BulkJobCanceled(BaseBulkException):
"""Raised when BULK Job has CANCELED status"""

failure_type: FailureType = FailureType.system_error

class BulkJobTimout(BaseBulkException):
"""Raised when BULK Job has TIMEOUT status"""

Expand Down
Loading

0 comments on commit dccb6c0

Please sign in to comment.