Skip to content

Commit dccb6c0

Browse files
authored
🎉 Source Shopify: dynamically adjust the size of the slice for Bulk API streams (#36788)
1 parent 0f3ab40 commit dccb6c0

File tree

14 files changed

+549
-184
lines changed

14 files changed

+549
-184
lines changed

‎airbyte-integrations/connectors/source-shopify/acceptance-test-config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ acceptance_tests:
6161
configured_catalog_path: "integration_tests/configured_catalog.json"
6262
future_state:
6363
future_state_path: "integration_tests/abnormal_state.json"
64-
timeout_seconds: 7200
64+
timeout_seconds: 8400
6565
full_refresh:
6666
tests:
6767
- config_path: "secrets/config.json"

‎airbyte-integrations/connectors/source-shopify/metadata.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ data:
1111
connectorSubtype: api
1212
connectorType: source
1313
definitionId: 9da77001-af33-4bcd-be46-6252bf9342b9
14-
dockerImageTag: 2.0.4
14+
dockerImageTag: 2.0.5
1515
dockerRepository: airbyte/source-shopify
1616
documentationUrl: https://docs.airbyte.com/integrations/sources/shopify
1717
githubIssueLabel: source-shopify
1818
icon: shopify.svg
1919
license: ELv2
20-
maxSecondsBetweenMessages: 7200
20+
maxSecondsBetweenMessages: 21600
2121
name: Shopify
2222
remoteRegistries:
2323
pypi:

‎airbyte-integrations/connectors/source-shopify/poetry.lock

+78-81
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎airbyte-integrations/connectors/source-shopify/pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",]
33
build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
6-
version = "2.0.4"
6+
version = "2.0.5"
77
name = "source-shopify"
88
description = "Source CDK implementation for Shopify."
99
authors = [ "Airbyte <[email protected]>",]
@@ -17,7 +17,7 @@ include = "source_shopify"
1717

1818
[tool.poetry.dependencies]
1919
python = "^3.9,<3.12"
20-
airbyte-cdk = ">=0.73.0"
20+
airbyte-cdk = "^0"
2121
sgqlc = "==16.3"
2222
graphql-query = "^1.1.1"
2323

‎airbyte-integrations/connectors/source-shopify/source_shopify/shopify_graphql/bulk/exceptions.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@
99

1010
class ShopifyBulkExceptions:
1111
class BaseBulkException(AirbyteTracedException):
12+
"""Base BULK Job Exception"""
13+
14+
failure_type: FailureType = FailureType.config_error
15+
1216
def __init__(self, message: str, **kwargs) -> None:
13-
super().__init__(internal_message=message, failure_type=FailureType.config_error, **kwargs)
17+
super().__init__(internal_message=message, failure_type=self.failure_type, **kwargs)
1418

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

37+
class BulkJobCanceled(BaseBulkException):
38+
"""Raised when BULK Job has CANCELED status"""
39+
40+
failure_type: FailureType = FailureType.system_error
41+
3342
class BulkJobTimout(BaseBulkException):
3443
"""Raised when BULK Job has TIMEOUT status"""
3544

0 commit comments

Comments
 (0)