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

Cancel python models on Ctrl-C #693

Merged
merged 7 commits into from
Jun 4, 2024
Merged

Cancel python models on Ctrl-C #693

merged 7 commits into from
Jun 4, 2024

Conversation

benc-db
Copy link
Collaborator

@benc-db benc-db commented Jun 4, 2024

Resolves #684

Description

When you cancel a running dbt job, running SQL queries are cancelled. This PR extends #690 to propagate the cancel behavior to python models.

Checklist

  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have updated the CHANGELOG.md and added information about my change to the "dbt-databricks next" section.

@gaoshihang
Copy link

Hi @benc-db I have tested our scenario, everything runs smoothly, the python model can be canceled! Thank you very much!
image
image

It's very pleasure to work with you.

@benc-db benc-db merged commit ef7782a into main Jun 4, 2024
18 checks passed
@gaoshihang
Copy link

Hi @benc-db Thanks for work on this. I still have a question, if we want to use this feature, which version should we use?

@benc-db
Copy link
Collaborator Author

benc-db commented Jun 5, 2024

Hi @benc-db Thanks for work on this. I still have a question, if we want to use this feature, which version should we use?
Hasn't been released yet, will be part of 1.8.2.

@gaoshihang
Copy link

@benc-db Thanks!

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 this pull request may close these issues.

Python model doesn't have cancel method
2 participants