Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python models don't wait for all-purpose-cluster to be fully ready #821

Open
mmenjivarST opened this issue Oct 9, 2024 · 0 comments · May be fixed by #822
Open

Python models don't wait for all-purpose-cluster to be fully ready #821

mmenjivarST opened this issue Oct 9, 2024 · 0 comments · May be fixed by #822

Comments

@mmenjivarST
Copy link

mmenjivarST commented Oct 9, 2024

def _wait_for_cluster_to_start(self) -> None:

Describe the bug

When executing python models in submission_method: all_purpose_cluster, the dbt-databricks connector is not recognizing when the cluster is still installing libraries. This produces python models to fail intermittently when libs are needed.

Steps To Reproduce

  1. Use an All Purpose Cluster running 14.3LTS
  2. Configure python models to run in all_purpose_cluster mode
  3. Create a python model that use a library that requires installation and configure it in the cluster created in 1.
  4. Execute the python model when the All Purpose Cluster is terminated

Expected behavior

Python models waiting until libraries configured in the cluster are installed

Screenshots and log output

Screenshot 2024-10-10 at 00 15 25

Based on this function, it waits until the cluster is in a running state, but this doesn't mean that the cluster is ready to use as shown in the screenshot.

System information

The output of dbt --version:

1.8.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant