apache-airflow-providers-dbt-cloud 4.3.2__py3-none-any.whl → 4.3.3__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 apache-airflow-providers-dbt-cloud might be problematic. Click here for more details.

@@ -29,7 +29,7 @@ from airflow import __version__ as airflow_version
29
29
 
30
30
  __all__ = ["__version__"]
31
31
 
32
- __version__ = "4.3.2"
32
+ __version__ = "4.3.3"
33
33
 
34
34
  if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
35
35
  "2.9.0"
@@ -26,47 +26,6 @@ def get_provider_info():
26
26
  "package-name": "apache-airflow-providers-dbt-cloud",
27
27
  "name": "dbt Cloud",
28
28
  "description": "`dbt Cloud <https://www.getdbt.com/product/dbt-cloud/>`__\n",
29
- "state": "ready",
30
- "source-date-epoch": 1743836022,
31
- "versions": [
32
- "4.3.2",
33
- "4.3.1",
34
- "4.2.1",
35
- "4.2.0",
36
- "4.0.0",
37
- "3.11.2",
38
- "3.11.1",
39
- "3.11.0",
40
- "3.10.1",
41
- "3.10.0",
42
- "3.9.0",
43
- "3.8.1",
44
- "3.8.0",
45
- "3.7.1",
46
- "3.7.0",
47
- "3.6.1",
48
- "3.6.0",
49
- "3.5.1",
50
- "3.5.0",
51
- "3.4.1",
52
- "3.4.0",
53
- "3.3.0",
54
- "3.2.3",
55
- "3.2.2",
56
- "3.2.1",
57
- "3.2.0",
58
- "3.1.1",
59
- "3.1.0",
60
- "3.0.0",
61
- "2.3.1",
62
- "2.3.0",
63
- "2.2.0",
64
- "2.1.0",
65
- "2.0.1",
66
- "2.0.0",
67
- "1.0.2",
68
- "1.0.1",
69
- ],
70
29
  "integrations": [
71
30
  {
72
31
  "integration-name": "dbt Cloud",
@@ -95,13 +54,4 @@ def get_provider_info():
95
54
  }
96
55
  ],
97
56
  "extra-links": ["airflow.providers.dbt.cloud.operators.dbt.DbtCloudRunJobOperatorLink"],
98
- "dependencies": [
99
- "apache-airflow>=2.9.0",
100
- "apache-airflow-providers-common-compat>=1.6.0",
101
- "apache-airflow-providers-http",
102
- "asgiref>=2.3.0",
103
- "aiohttp>=3.9.2",
104
- ],
105
- "optional-dependencies": {"openlineage": ["apache-airflow-providers-openlineage>=2.0.0"]},
106
- "devel-dependencies": [],
107
57
  }
@@ -216,30 +216,29 @@ class DbtCloudRunJobOperator(BaseOperator):
216
216
  raise DbtCloudJobRunException(f"Job run {self.run_id} has failed or has been cancelled.")
217
217
 
218
218
  return self.run_id
219
- else:
220
- end_time = time.time() + self.timeout
221
- job_run_info = JobRunInfo(account_id=self.account_id, run_id=self.run_id)
222
- job_run_status = self.hook.get_job_run_status(**job_run_info)
223
- if not DbtCloudJobRunStatus.is_terminal(job_run_status):
224
- self.defer(
225
- timeout=self.execution_timeout,
226
- trigger=DbtCloudRunJobTrigger(
227
- conn_id=self.dbt_cloud_conn_id,
228
- run_id=self.run_id,
229
- end_time=end_time,
230
- account_id=self.account_id,
231
- poll_interval=self.check_interval,
232
- ),
233
- method_name="execute_complete",
234
- )
235
- elif job_run_status == DbtCloudJobRunStatus.SUCCESS.value:
236
- self.log.info("Job run %s has completed successfully.", self.run_id)
237
- return self.run_id
238
- elif job_run_status in (
239
- DbtCloudJobRunStatus.CANCELLED.value,
240
- DbtCloudJobRunStatus.ERROR.value,
241
- ):
242
- raise DbtCloudJobRunException(f"Job run {self.run_id} has failed or has been cancelled.")
219
+ end_time = time.time() + self.timeout
220
+ job_run_info = JobRunInfo(account_id=self.account_id, run_id=self.run_id)
221
+ job_run_status = self.hook.get_job_run_status(**job_run_info)
222
+ if not DbtCloudJobRunStatus.is_terminal(job_run_status):
223
+ self.defer(
224
+ timeout=self.execution_timeout,
225
+ trigger=DbtCloudRunJobTrigger(
226
+ conn_id=self.dbt_cloud_conn_id,
227
+ run_id=self.run_id,
228
+ end_time=end_time,
229
+ account_id=self.account_id,
230
+ poll_interval=self.check_interval,
231
+ ),
232
+ method_name="execute_complete",
233
+ )
234
+ elif job_run_status == DbtCloudJobRunStatus.SUCCESS.value:
235
+ self.log.info("Job run %s has completed successfully.", self.run_id)
236
+ return self.run_id
237
+ elif job_run_status in (
238
+ DbtCloudJobRunStatus.CANCELLED.value,
239
+ DbtCloudJobRunStatus.ERROR.value,
240
+ ):
241
+ raise DbtCloudJobRunException(f"Job run {self.run_id} has failed or has been cancelled.")
243
242
  else:
244
243
  if self.deferrable is True:
245
244
  warnings.warn(
@@ -255,7 +254,7 @@ class DbtCloudRunJobOperator(BaseOperator):
255
254
  self.run_id = event["run_id"]
256
255
  if event["status"] == "cancelled":
257
256
  raise DbtCloudJobRunException(f"Job run {self.run_id} has been cancelled.")
258
- elif event["status"] == "error":
257
+ if event["status"] == "error":
259
258
  raise DbtCloudJobRunException(f"Job run {self.run_id} has failed.")
260
259
  self.log.info(event["message"])
261
260
  return int(event["run_id"])
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apache-airflow-providers-dbt-cloud
3
- Version: 4.3.2
3
+ Version: 4.3.3
4
4
  Summary: Provider package apache-airflow-providers-dbt-cloud for Apache Airflow
5
5
  Keywords: airflow-provider,dbt.cloud,airflow,integration
6
6
  Author-email: Apache Software Foundation <dev@airflow.apache.org>
@@ -27,8 +27,8 @@ Requires-Dist: asgiref>=2.3.0
27
27
  Requires-Dist: aiohttp>=3.9.2
28
28
  Requires-Dist: apache-airflow-providers-openlineage>=2.0.0 ; extra == "openlineage"
29
29
  Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
30
- Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-dbt-cloud/4.3.2/changelog.html
31
- Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-dbt-cloud/4.3.2
30
+ Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-dbt-cloud/4.3.3/changelog.html
31
+ Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-dbt-cloud/4.3.3
32
32
  Project-URL: Mastodon, https://fosstodon.org/@airflow
33
33
  Project-URL: Slack Chat, https://s.apache.org/airflow-slack
34
34
  Project-URL: Source Code, https://github.com/apache/airflow
@@ -60,7 +60,7 @@ Provides-Extra: openlineage
60
60
 
61
61
  Package ``apache-airflow-providers-dbt-cloud``
62
62
 
63
- Release: ``4.3.2``
63
+ Release: ``4.3.3``
64
64
 
65
65
 
66
66
  `dbt Cloud <https://www.getdbt.com/product/dbt-cloud/>`__
@@ -73,7 +73,7 @@ This is a provider package for ``dbt.cloud`` provider. All classes for this prov
73
73
  are in ``airflow.providers.dbt.cloud`` python package.
74
74
 
75
75
  You can find package information and changelog for the provider
76
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-dbt-cloud/4.3.2/>`_.
76
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-dbt-cloud/4.3.3/>`_.
77
77
 
78
78
  Installation
79
79
  ------------
@@ -119,5 +119,5 @@ Dependent package
119
119
  ================================================================================================================== =================
120
120
 
121
121
  The changelog for the provider package can be found in the
122
- `changelog <https://airflow.apache.org/docs/apache-airflow-providers-dbt-cloud/4.3.2/changelog.html>`_.
122
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-dbt-cloud/4.3.3/changelog.html>`_.
123
123
 
@@ -1,18 +1,18 @@
1
1
  airflow/providers/dbt/cloud/LICENSE,sha256=gXPVwptPlW1TJ4HSuG5OMPg-a3h43OGMkZRR1rpwfJA,10850
2
- airflow/providers/dbt/cloud/__init__.py,sha256=YOSN3fpc2l1rXJS8vWMF6ucArBog6QLvijk1L2oRQ-U,1496
3
- airflow/providers/dbt/cloud/get_provider_info.py,sha256=H7oL6RmJmhA6RieZ730WUOrtxQrn4ULBB6PPbaoaZZQ,3762
2
+ airflow/providers/dbt/cloud/__init__.py,sha256=zm4_99zeTCViXmZk84_89WFvxxxy375Uw6zX48lzMgo,1496
3
+ airflow/providers/dbt/cloud/get_provider_info.py,sha256=ufODYanp90_NPW1UftzGIwwG65Olb5l5PfSp0Mo1SOs,2507
4
4
  airflow/providers/dbt/cloud/version_compat.py,sha256=aHg90_DtgoSnQvILFICexMyNlHlALBdaeWqkX3dFDug,1605
5
5
  airflow/providers/dbt/cloud/hooks/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
6
6
  airflow/providers/dbt/cloud/hooks/dbt.py,sha256=jGE_QOeYhJvl11xV9zQ3Jq6xApOQrKovbZS9smCT9bI,34538
7
7
  airflow/providers/dbt/cloud/operators/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
8
- airflow/providers/dbt/cloud/operators/dbt.py,sha256=dwagI9sMAXmzNRKRUsr7VvKaHJFdKNMj4iaz-Av8W3A,18043
8
+ airflow/providers/dbt/cloud/operators/dbt.py,sha256=cqgSesAOi-lZgsFw09a4pWyspx8pQWXScODqZVIsFTg,17931
9
9
  airflow/providers/dbt/cloud/sensors/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
10
10
  airflow/providers/dbt/cloud/sensors/dbt.py,sha256=OGf-VNKcCNCrImrdE8PudmtDak_MKJfPhmaf7_ccOLg,5157
11
11
  airflow/providers/dbt/cloud/triggers/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
12
12
  airflow/providers/dbt/cloud/triggers/dbt.py,sha256=Oabdc7FcNhCQxkjDC5SqAiYEw4hSZ9mQGZgSt36a1E0,4707
13
13
  airflow/providers/dbt/cloud/utils/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
14
14
  airflow/providers/dbt/cloud/utils/openlineage.py,sha256=DZdvi1i4dDhWc9zqj-vf7E4gtDuoS68w3EwIPOxwnuw,7647
15
- apache_airflow_providers_dbt_cloud-4.3.2.dist-info/entry_points.txt,sha256=c18L1WEEK18WQeEGrm9kMVqutiYJHiWGH5jU1JqnToE,105
16
- apache_airflow_providers_dbt_cloud-4.3.2.dist-info/WHEEL,sha256=_2ozNFCLWc93bK4WKHCO-eDUENDlo-dgc9cU3qokYO4,82
17
- apache_airflow_providers_dbt_cloud-4.3.2.dist-info/METADATA,sha256=eEOD_0MbD8HN98oWKqW26luLQxUwcQsR2FHDweRue5U,5758
18
- apache_airflow_providers_dbt_cloud-4.3.2.dist-info/RECORD,,
15
+ apache_airflow_providers_dbt_cloud-4.3.3.dist-info/entry_points.txt,sha256=c18L1WEEK18WQeEGrm9kMVqutiYJHiWGH5jU1JqnToE,105
16
+ apache_airflow_providers_dbt_cloud-4.3.3.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
17
+ apache_airflow_providers_dbt_cloud-4.3.3.dist-info/METADATA,sha256=QfdSy5G59I7iDpMj9uhO90-4qmpsVbvoFWiv6yBgsY8,5758
18
+ apache_airflow_providers_dbt_cloud-4.3.3.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: flit 3.11.0
2
+ Generator: flit 3.12.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any