AltimateAI / AltimateAI/vscode-dbt-power-user

Provide kill feature for dbt commands (run model, run parent/children models, run tests)

Đang mở
#204 7 bình luận 6 reaction 1 người được giao Được giao cho @AdiGajbhiye Xem trên GitHub
enhancement help wanted
Ngôn ngữ chính
JavaScript
Star
585
Fork
121
Merge trung bình
5 ngày 39 phút
Pull request đã merge (30 ngày)
4

Mô tả

### Expected behavior

If I use this button:

image

It executes `dbt run --select +MY_MODEL_NAME`

If I click the VS Code integrated terminal's "Kill Terminal" button on the terminal window that is then started:

image

I expect that the job will be killed and any planned / scheduled queries will not be sent to my DB.

### Actual behavior

If I use this button:

image

It executes `dbt run --select +MY_MODEL_NAME`

If I click the VS Code integrated terminal's "Kill Terminal" button on the terminal window that is then started:

image

All SQL statements are still sent to my DB (even if they are far downstream and I click the button far before most of them can even be started due to dependencies).

If I run the same `dbt run --select +MY_MODEL_NAME` manually from my terminal, and later hit Ctrl+C and kill it, no furthe SQL is sent to my DB.

I'm not sure if this is something under the extension's control or not.

Prior to posting, I tried searching the Issues for `stop`, `abort`, `cancel`, and `kill` before posting. Hopefully this isn't a duplicate of an existing Issue.

### Steps To Reproduce

Use this button to execute a model and it's dependencies:

image

Click the VS Code integrated terminal's "Kill Terminal" button on the terminal window that is then started:

image

Check your DB's activity and watch as all statements are still executed.

### Log output/Screenshots

_No response_

### Operating System

12.6.1 (21G217)

### dbt version

1.3.0

### dbt Adapter

Snowflake

### dbt Power User version

0.9.0

### Are you willing to submit PR?

- [ ] Yes I am willing to submit a PR!

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.