apache-airflow-providers-dbt-cloud 3.3.0rc1__py3-none-any.whl → 3.3.0rc2__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.
- airflow/providers/dbt/cloud/operators/dbt.py +5 -3
- {apache_airflow_providers_dbt_cloud-3.3.0rc1.dist-info → apache_airflow_providers_dbt_cloud-3.3.0rc2.dist-info}/METADATA +2 -2
- {apache_airflow_providers_dbt_cloud-3.3.0rc1.dist-info → apache_airflow_providers_dbt_cloud-3.3.0rc2.dist-info}/RECORD +8 -8
- {apache_airflow_providers_dbt_cloud-3.3.0rc1.dist-info → apache_airflow_providers_dbt_cloud-3.3.0rc2.dist-info}/LICENSE +0 -0
- {apache_airflow_providers_dbt_cloud-3.3.0rc1.dist-info → apache_airflow_providers_dbt_cloud-3.3.0rc2.dist-info}/NOTICE +0 -0
- {apache_airflow_providers_dbt_cloud-3.3.0rc1.dist-info → apache_airflow_providers_dbt_cloud-3.3.0rc2.dist-info}/WHEEL +0 -0
- {apache_airflow_providers_dbt_cloud-3.3.0rc1.dist-info → apache_airflow_providers_dbt_cloud-3.3.0rc2.dist-info}/entry_points.txt +0 -0
- {apache_airflow_providers_dbt_cloud-3.3.0rc1.dist-info → apache_airflow_providers_dbt_cloud-3.3.0rc2.dist-info}/top_level.txt +0 -0
|
@@ -117,7 +117,7 @@ class DbtCloudRunJobOperator(BaseOperator):
|
|
|
117
117
|
self.timeout = timeout
|
|
118
118
|
self.check_interval = check_interval
|
|
119
119
|
self.additional_run_config = additional_run_config or {}
|
|
120
|
-
self.run_id: int
|
|
120
|
+
self.run_id: int | None = None
|
|
121
121
|
self.deferrable = deferrable
|
|
122
122
|
|
|
123
123
|
def execute(self, context: Context):
|
|
@@ -135,12 +135,13 @@ class DbtCloudRunJobOperator(BaseOperator):
|
|
|
135
135
|
additional_run_config=self.additional_run_config,
|
|
136
136
|
)
|
|
137
137
|
self.run_id = trigger_job_response.json()["data"]["id"]
|
|
138
|
+
print(self.run_id)
|
|
138
139
|
job_run_url = trigger_job_response.json()["data"]["href"]
|
|
139
140
|
# Push the ``job_run_url`` value to XCom regardless of what happens during execution so that the job
|
|
140
141
|
# run can be monitored via the operator link.
|
|
141
142
|
context["ti"].xcom_push(key="job_run_url", value=job_run_url)
|
|
142
143
|
|
|
143
|
-
if self.wait_for_termination:
|
|
144
|
+
if self.wait_for_termination and isinstance(self.run_id, int):
|
|
144
145
|
if self.deferrable is False:
|
|
145
146
|
self.log.info("Waiting for job run %s to terminate.", str(self.run_id))
|
|
146
147
|
|
|
@@ -197,6 +198,7 @@ class DbtCloudRunJobOperator(BaseOperator):
|
|
|
197
198
|
if event["status"] == "error":
|
|
198
199
|
raise AirflowException(event["message"])
|
|
199
200
|
self.log.info(event["message"])
|
|
201
|
+
self.run_id = event["run_id"]
|
|
200
202
|
return int(event["run_id"])
|
|
201
203
|
|
|
202
204
|
def on_kill(self) -> None:
|
|
@@ -225,7 +227,7 @@ class DbtCloudRunJobOperator(BaseOperator):
|
|
|
225
227
|
"""
|
|
226
228
|
from airflow.providers.openlineage.extractors import OperatorLineage
|
|
227
229
|
|
|
228
|
-
if self.wait_for_termination is True:
|
|
230
|
+
if isinstance(self.run_id, int) and self.wait_for_termination is True:
|
|
229
231
|
return generate_openlineage_events_from_dbt_cloud_run(operator=self, task_instance=task_instance)
|
|
230
232
|
return OperatorLineage()
|
|
231
233
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: apache-airflow-providers-dbt-cloud
|
|
3
|
-
Version: 3.3.
|
|
3
|
+
Version: 3.3.0rc2
|
|
4
4
|
Summary: Provider for Apache Airflow. Implements apache-airflow-providers-dbt-cloud package
|
|
5
5
|
Home-page: https://airflow.apache.org/
|
|
6
6
|
Download-URL: https://archive.apache.org/dist/airflow/providers
|
|
@@ -78,7 +78,7 @@ Requires-Dist: apache-airflow-providers-openlineage ; extra == 'openlineage'
|
|
|
78
78
|
|
|
79
79
|
Package ``apache-airflow-providers-dbt-cloud``
|
|
80
80
|
|
|
81
|
-
Release: ``3.3.
|
|
81
|
+
Release: ``3.3.0rc2``
|
|
82
82
|
|
|
83
83
|
|
|
84
84
|
`dbt Cloud <https://www.getdbt.com/product/what-is-dbt/>`__
|
|
@@ -3,17 +3,17 @@ airflow/providers/dbt/cloud/get_provider_info.py,sha256=D0avicOxoM2xq6r_0A7sEjNl
|
|
|
3
3
|
airflow/providers/dbt/cloud/hooks/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
4
4
|
airflow/providers/dbt/cloud/hooks/dbt.py,sha256=MIFM5-33XdJ57OK_84jy-o_9Glv6hqUHvKMmjezdWVI,25559
|
|
5
5
|
airflow/providers/dbt/cloud/operators/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
6
|
-
airflow/providers/dbt/cloud/operators/dbt.py,sha256=
|
|
6
|
+
airflow/providers/dbt/cloud/operators/dbt.py,sha256=vT66XAMsXxBWc-NTTVgxiHREPuLOrDYMp9-UOw_2XkY,14642
|
|
7
7
|
airflow/providers/dbt/cloud/sensors/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
|
8
8
|
airflow/providers/dbt/cloud/sensors/dbt.py,sha256=ezUjuWA9ymrObBtatVr78XSo9j2GVnQurz0zqI69emQ,6851
|
|
9
9
|
airflow/providers/dbt/cloud/triggers/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
10
10
|
airflow/providers/dbt/cloud/triggers/dbt.py,sha256=TGBevYo4pcZT_x7bist5H5d9gl_YbNypXG71n_6DcgM,4649
|
|
11
11
|
airflow/providers/dbt/cloud/utils/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
12
12
|
airflow/providers/dbt/cloud/utils/openlineage.py,sha256=HhrTu5lEbOh8MgAmADUZoeEKyyrmLDRGquFcW1xglL4,5561
|
|
13
|
-
apache_airflow_providers_dbt_cloud-3.3.
|
|
14
|
-
apache_airflow_providers_dbt_cloud-3.3.
|
|
15
|
-
apache_airflow_providers_dbt_cloud-3.3.
|
|
16
|
-
apache_airflow_providers_dbt_cloud-3.3.
|
|
17
|
-
apache_airflow_providers_dbt_cloud-3.3.
|
|
18
|
-
apache_airflow_providers_dbt_cloud-3.3.
|
|
19
|
-
apache_airflow_providers_dbt_cloud-3.3.
|
|
13
|
+
apache_airflow_providers_dbt_cloud-3.3.0rc2.dist-info/LICENSE,sha256=gXPVwptPlW1TJ4HSuG5OMPg-a3h43OGMkZRR1rpwfJA,10850
|
|
14
|
+
apache_airflow_providers_dbt_cloud-3.3.0rc2.dist-info/METADATA,sha256=a4mypQVA-hcow_ZUZBES91BXUBG31v6-juAGV-ISvTU,6042
|
|
15
|
+
apache_airflow_providers_dbt_cloud-3.3.0rc2.dist-info/NOTICE,sha256=m-6s2XynUxVSUIxO4rVablAZCvFq-wmLrqV91DotRBw,240
|
|
16
|
+
apache_airflow_providers_dbt_cloud-3.3.0rc2.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
17
|
+
apache_airflow_providers_dbt_cloud-3.3.0rc2.dist-info/entry_points.txt,sha256=k8OVpnO31CZUDg6GUidxo_K0s-awqUtzwgleihksBkY,106
|
|
18
|
+
apache_airflow_providers_dbt_cloud-3.3.0rc2.dist-info/top_level.txt,sha256=OeMVH5md7fr2QQWpnZoOWWxWO-0WH1IP70lpTVwopPg,8
|
|
19
|
+
apache_airflow_providers_dbt_cloud-3.3.0rc2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|