mobuchowski commented on code in PR #33959:
URL: https://github.com/apache/airflow/pull/33959#discussion_r1314687572
##########
airflow/providers/dbt/cloud/operators/dbt.py:
##########
@@ -211,6 +212,27 @@ def on_kill(self) -> None:
):
self.log.info("Job run %s has been cancelled successfully.",
str(self.run_id))
+ @cached_property
+ def hook(self):
+ """Returns DBT Cloud hook."""
+ return DbtCloudHook(self.dbt_cloud_conn_id)
+
+ def get_openlineage_facets_on_complete(self, task_instance) ->
OperatorLineage:
+ """
+ Implementing _on_complete because job_run needs to be triggered first
in execute method.
+
+ This should send additional events only if operator
`wait_for_termination` is set to True.
+ """
+ from airflow.providers.openlineage.extractors import OperatorLineage
+
+ if self.wait_for_termination is True:
Review Comment:
This actually work as intended.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]