databricks / dbt-databricks

A dbt adapter for Databricks.
https://databricks.com
Apache License 2.0
226 stars 119 forks source link

Update `_wait_for_cluster_to_start` func to check for libraries statuses #822

Open psivash opened 1 month ago

psivash commented 1 month ago

Resolves #821

Description

Enhance _wait_for_cluster_to_start to wait for library installation

Previously, the _wait_for_cluster_to_start function only checked if the cluster state was 'running'. This update adds a check to ensure all cluster libraries have been successfully installed (or skipped or restored) before proceeding. This ensures the cluster is fully ready for operations that depend on these libraries.