Skip to content

Commit

Permalink
🐛 Source Shopify: fix OOM/memory leak (airbytehq#23473)
Browse files Browse the repository at this point in the history
  • Loading branch information
bazarnov authored and a-rampalli committed Mar 3, 2023
1 parent 4ccec01 commit ba093a3
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1576,7 +1576,7 @@
- name: Shopify
sourceDefinitionId: 9da77001-af33-4bcd-be46-6252bf9342b9
dockerRepository: airbyte/source-shopify
dockerImageTag: 0.3.1
dockerImageTag: 0.3.2
documentationUrl: https://docs.airbyte.com/integrations/sources/shopify
icon: shopify.svg
sourceType: api
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13352,7 +13352,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-shopify:0.3.1"
- dockerImage: "airbyte/source-shopify:0.3.2"
spec:
documentationUrl: "https://docs.airbyte.com/integrations/sources/shopify"
connectionSpecification:
Expand Down
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-shopify/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ COPY source_shopify ./source_shopify
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=0.3.1
LABEL io.airbyte.version=0.3.2
LABEL io.airbyte.name=airbyte/source-shopify
4 changes: 2 additions & 2 deletions airbyte-integrations/connectors/source-shopify/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
MAIN_REQUIREMENTS = ["airbyte-cdk", "sgqlc~=16.0"]

TEST_REQUIREMENTS = [
"pytest~=6.1",
"pytest-mock~=3.10.0",
"pytest",
"pytest-mock",
"requests-mock",
"source-acceptance-test",
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@


from abc import ABC, abstractmethod
from functools import cached_property
from typing import Any, Dict, Iterable, List, Mapping, MutableMapping, Optional, Tuple, Union
from urllib.parse import parse_qsl, urlparse

Expand Down Expand Up @@ -185,7 +186,7 @@ class ShopifySubstream(IncrementalShopifyStream):
nested_substream = None
nested_substream_list_field_id = None

@property
@cached_property
def parent_stream(self) -> object:
"""
Returns the instance of parent stream, if the substream has a `parent_stream_class` dependency.
Expand Down
3 changes: 2 additions & 1 deletion docs/integrations/sources/shopify.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ This is expected when the connector hits the 429 - Rate Limit Exceeded HTTP Erro

| Version | Date | Pull Request | Subject |
|:--------|:-----------|:----------------------------------------------------------|:----------------------------------------------------------------------------------------------------------|
| 0.3.1 | 2023-01-16 | [21461](https://github.com/airbytehq/airbyte/pull/21461) | Add `discount_applications` to `orders` stream |
| 0.3.2 | 2023-02-27 | [23473](https://github.com/airbytehq/airbyte/pull/23473) | Fixed OOM / Memory leak issue for Airbyte Cloud |
| 0.3.1 | 2023-01-16 | [21461](https://github.com/airbytehq/airbyte/pull/21461) | Add `discount_applications` to `orders` stream |
| 0.3.0 | 2022-11-16 | [19492](https://github.com/airbytehq/airbyte/pull/19492) | Add support for graphql and add a graphql products stream |
| 0.2.0 | 2022-10-21 | [18298](https://github.com/airbytehq/airbyte/pull/18298) | Updated API version to the `2022-10`, make stream schemas backward cpmpatible |
| 0.1.39 | 2022-10-13 | [17962](https://github.com/airbytehq/airbyte/pull/17962) | Add metafield streams; support for nested list streams |
Expand Down

0 comments on commit ba093a3

Please sign in to comment.