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

[CT-161] RPC server goes into infinitely compiling state when cancelling dbt deps #71

Closed
davidharting opened this issue Feb 3, 2022 · 4 comments
Labels
bug Something isn't working Stale

Comments

@davidharting
Copy link

Background

In the Cloud IDE, when you cancel a dbt deps command, the rpc server enters a compiling state and never comes out in my testing (after 5+ minutes). This appears to be a bug with dbt core or the RPC server, rather than cloud getting out of sync with the rpc server. The cloud IDe sends a “kill” command when the cancel button is clicked. As the IDE polls on status, it gets “compiling” back every time. So far, I have only been able to get this to happen with deps and no other commands.

Reproduction steps

In dbt Cloud:

  1. Start an IDE session
  2. Make sure you are in a Ready state
  3. Use the command bar to run dbt deps
  4. Hit the Cancel button while it is running
  5. Notice
  6. That the deps command successfully cancels
  7. That the server is now in a compiling state and stays in that state

You can also watch me repro this in this Loom.

Expected behavior

I expect the server to go to compiling momentarily after cancelling, but to then finish compiling and enter either an error or ready state.

@github-actions github-actions bot changed the title RPC server goes into infinitely compiling state when cancelling dbt deps [CT-161] RPC server goes into infinitely compiling state when cancelling dbt deps Feb 3, 2022
@jtcohen6 jtcohen6 added the triage label Feb 4, 2022
@jtcohen6
Copy link
Contributor

jtcohen6 commented Feb 4, 2022

I was able to reproduce this with dbt-rpc locally. My suspicion is:

(I'm sure I'm slightly off for a few of the finer details)

You can also watch me repro in this Loom :)

@jtcohen6 jtcohen6 added bug Something isn't working and removed triage labels Feb 4, 2022
@davidharting
Copy link
Author

davidharting commented Feb 4, 2022

@jtcohen6 Lol, the matching sweatshirt Loom 😆 Thanks so much for the reproduction and analysis! Learned a lot about internals from watching. I need to get my local dbt set up restored so that I can provide local repro for this sort of thing!

@iknox-fa
Copy link

iknox-fa commented May 9, 2022

We have a few issues regarding dbt not handling inturrupts well.. Spike has been made to investigate further:
#83

@github-actions
Copy link

github-actions bot commented Nov 6, 2022

This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue, or it will be closed in 7 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale
Projects
None yet
Development

No branches or pull requests

3 participants