dagster-airbyte 0.20.11__py3-none-any.whl → 0.20.13rc0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of dagster-airbyte might be problematic. Click here for more details.

@@ -69,6 +69,10 @@ class BaseAirbyteResource(ConfigurableResource):
69
69
  " that do not impact your Airbyte deployment."
70
70
  ),
71
71
  )
72
+ poll_interval: float = Field(
73
+ default=DEFAULT_POLL_INTERVAL_SECONDS,
74
+ description="Time (in seconds) to wait between checking a sync's status.",
75
+ )
72
76
 
73
77
  @classmethod
74
78
  def _is_dagster_maintained(cls) -> bool:
@@ -161,7 +165,7 @@ class BaseAirbyteResource(ConfigurableResource):
161
165
  def sync_and_poll(
162
166
  self,
163
167
  connection_id: str,
164
- poll_interval: float = DEFAULT_POLL_INTERVAL_SECONDS,
168
+ poll_interval: Optional[float] = None,
165
169
  poll_timeout: Optional[float] = None,
166
170
  ) -> AirbyteOutput:
167
171
  """Initializes a sync operation for the given connector, and polls until it completes.
@@ -195,7 +199,7 @@ class BaseAirbyteResource(ConfigurableResource):
195
199
  f"Timeout: Airbyte job {job_id} is not ready after the timeout"
196
200
  f" {poll_timeout} seconds"
197
201
  )
198
- time.sleep(poll_interval)
202
+ time.sleep(poll_interval or self.poll_interval)
199
203
  job_details = self.get_job_status(connection_id, job_id)
200
204
  attempts = cast(List, job_details.get("attempts", []))
201
205
  cur_attempt = len(attempts)
@@ -589,7 +593,7 @@ class AirbyteResource(BaseAirbyteResource):
589
593
  def sync_and_poll(
590
594
  self,
591
595
  connection_id: str,
592
- poll_interval: float = DEFAULT_POLL_INTERVAL_SECONDS,
596
+ poll_interval: Optional[float] = None,
593
597
  poll_timeout: Optional[float] = None,
594
598
  ) -> AirbyteOutput:
595
599
  """Initializes a sync operation for the given connector, and polls until it completes.
@@ -623,7 +627,7 @@ class AirbyteResource(BaseAirbyteResource):
623
627
  f"Timeout: Airbyte job {job_id} is not ready after the timeout"
624
628
  f" {poll_timeout} seconds"
625
629
  )
626
- time.sleep(poll_interval)
630
+ time.sleep(poll_interval or self.poll_interval)
627
631
  job_details = self.get_job_status(connection_id, job_id)
628
632
  attempts = cast(List, job_details.get("attempts", []))
629
633
  cur_attempt = len(attempts)
@@ -1 +1 @@
1
- __version__ = "0.20.11"
1
+ __version__ = "0.20.13rc0"
@@ -186,7 +186,7 @@
186
186
  same "printed page" as the copyright notice for easier
187
187
  identification within third-party archives.
188
188
 
189
- Copyright 2023 Elementl, Inc.
189
+ Copyright 2023 Dagster Labs, Inc".
190
190
 
191
191
  Licensed under the Apache License, Version 2.0 (the "License");
192
192
  you may not use this file except in compliance with the License.
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dagster-airbyte
3
- Version: 0.20.11
3
+ Version: 0.20.13rc0
4
4
  Summary: Package for integrating Airbyte with Dagster.
5
5
  Home-page: https://github.com/dagster-io/dagster/tree/master/python_modules/libraries/dagster-airbyte
6
- Author: Elementl
7
- Author-email: hello@elementl.com
6
+ Author: Dagster Labs
7
+ Author-email: hello@dagsterlabs.com
8
8
  License: Apache-2.0
9
9
  Classifier: Programming Language :: Python :: 3.8
10
10
  Classifier: Programming Language :: Python :: 3.9
@@ -13,10 +13,10 @@ Classifier: Programming Language :: Python :: 3.11
13
13
  Classifier: License :: OSI Approved :: Apache Software License
14
14
  Classifier: Operating System :: OS Independent
15
15
  License-File: LICENSE
16
- Requires-Dist: dagster (==1.4.11)
16
+ Requires-Dist: dagster (==1.4.13rc0)
17
17
  Requires-Dist: requests
18
18
  Provides-Extra: managed
19
- Requires-Dist: dagster-managed-elements (==0.20.11) ; extra == 'managed'
19
+ Requires-Dist: dagster-managed-elements (==0.20.13rc0) ; extra == 'managed'
20
20
  Provides-Extra: test
21
21
  Requires-Dist: requests-mock ; extra == 'test'
22
22
 
@@ -2,19 +2,19 @@ dagster_airbyte/__init__.py,sha256=KRUcHzOxDEmo9oO7qRwJNrRnxK28PeHTeUemMS4z2Gc,1
2
2
  dagster_airbyte/asset_defs.py,sha256=dQK4nRfXzXRQy6pVq2HvmrE25vVfmsFjWcwBwc3yTjM,45248
3
3
  dagster_airbyte/cli.py,sha256=HErteP1MjfHozKKSrznh0yAreKETbXp5NDHzXGsdvvE,425
4
4
  dagster_airbyte/ops.py,sha256=OaD6DA9Iz-T6hroSAQcrruqZWgR8ECxksupg0CQR_DU,4128
5
- dagster_airbyte/resources.py,sha256=RgMGnd_4FhY_XLcTGELV3pRROLIC0m7TxPnmkIjOiOE,26742
5
+ dagster_airbyte/resources.py,sha256=I1QOe3rkCoySWL-M3WQr75J-mOhC8FRXFvS6ktjuXUU,26926
6
6
  dagster_airbyte/types.py,sha256=fwqUv_MZCegwHhSELgUqm1H1JVUb-m83CyXFkd0r-ko,1425
7
7
  dagster_airbyte/utils.py,sha256=wd_38t9rZelUogIA7xKjz8tbWfHUwdkyFTBTPI3kCIU,2639
8
- dagster_airbyte/version.py,sha256=somEGXFvHhuE-Am1IwxLrXctMcGtTMhLq2X5WnKGyQ4,24
8
+ dagster_airbyte/version.py,sha256=Z6ZAOu-oMeEuwqFargfrmbKRwW3jDfuvwY8ga-LmHjQ,27
9
9
  dagster_airbyte/managed/__init__.py,sha256=azuKhCI8eUsmEGBL2M2d6qkqQ0vhsV9H5IioP83kbm8,423
10
10
  dagster_airbyte/managed/reconciliation.py,sha256=-_zXsjDZ9aod82kzEytgW9127gJMKBuQxYfpYb0Sp2o,33784
11
11
  dagster_airbyte/managed/types.py,sha256=Aq6065Jcimf9uK0wbP_EsdTWMYyG5LEnn7sGZ6J1KBA,14209
12
12
  dagster_airbyte/managed/generated/__init__.py,sha256=1ChWhXU1uyX_9rClMD6XHzkriKOc0fjIQntsoI3G99g,76
13
13
  dagster_airbyte/managed/generated/destinations.py,sha256=afBHge9FQENIBVywHcBoUcSyGqrLDjQpv1XgHkks7Vs,119751
14
14
  dagster_airbyte/managed/generated/sources.py,sha256=hoahliCUupXBg07GnCZugjKhxyutjXZOfU0fOFv_Z68,282784
15
- dagster_airbyte-0.20.11.dist-info/LICENSE,sha256=-gtoVIAZYUHYmNHISZg982FI4Oh19mV1nxgTVW8eCB8,11344
16
- dagster_airbyte-0.20.11.dist-info/METADATA,sha256=UiVgueuyyE0p_GHIdTl1cHzOHb4M2wUa281B2fnM9dE,846
17
- dagster_airbyte-0.20.11.dist-info/WHEEL,sha256=p46_5Uhzqz6AzeSosiOnxK-zmFja1i22CrQCjmYe8ec,92
18
- dagster_airbyte-0.20.11.dist-info/entry_points.txt,sha256=XrbLOz3LpgPV5fdwMmgdP6Rp1AfSG07KeWIddLqh7Lw,61
19
- dagster_airbyte-0.20.11.dist-info/top_level.txt,sha256=HLwIRQCzqItn88_KbPP8DNTKKQEBUVKk6NCn4PrCtqY,16
20
- dagster_airbyte-0.20.11.dist-info/RECORD,,
15
+ dagster_airbyte-0.20.13rc0.dist-info/LICENSE,sha256=TMatHW4_G9ldRdodEAp-l2Xa2WvsdeOh60E3v1R2jis,11349
16
+ dagster_airbyte-0.20.13rc0.dist-info/METADATA,sha256=4YZycZz6Wbite5cK59iCWzYCd_tnnRnGrSWl5-RAZ2Q,862
17
+ dagster_airbyte-0.20.13rc0.dist-info/WHEEL,sha256=p46_5Uhzqz6AzeSosiOnxK-zmFja1i22CrQCjmYe8ec,92
18
+ dagster_airbyte-0.20.13rc0.dist-info/entry_points.txt,sha256=XrbLOz3LpgPV5fdwMmgdP6Rp1AfSG07KeWIddLqh7Lw,61
19
+ dagster_airbyte-0.20.13rc0.dist-info/top_level.txt,sha256=HLwIRQCzqItn88_KbPP8DNTKKQEBUVKk6NCn4PrCtqY,16
20
+ dagster_airbyte-0.20.13rc0.dist-info/RECORD,,