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

Improve StartComputeInstanceOnlyAllowedInStoppedState error #2439

Open
sevillal opened this issue Aug 23, 2024 · 0 comments
Open

Improve StartComputeInstanceOnlyAllowedInStoppedState error #2439

sevillal opened this issue Aug 23, 2024 · 0 comments

Comments

@sevillal
Copy link
Contributor

When a compute instance is not running we are showing a promp with a button for the user to start the compute instance.

The StartComputeInstanceOnlyAllowedInStoppedState error could happen in the following scenario:

  1. Compute instance is stopped
  2. Prompt with button to start the CI is displayed
  3. Customer leaves the VS Code window and starts the compute instance from the Studio
  4. Customer goes back to the VS Code window and click the "Start CI" button

Proposal:
We could check the status of the CI right after the click and do the appropiate:

  • If in stopped state then start the CI
  • If in a transition to running state then wait for it to be running
  • If in a failed stated then show an error
  • If in a transition to stopped state: need PM input
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant