-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[workspace]: add force-stop check on stopping workspaces #5184
Conversation
@jankeromnes has manually deleted all instances stuck in
|
Is there any way to test this in the preview env? |
Another super cool fix! Many thanks @mrsimonemms 🙏 🚀
... all created since yesterday around midnight UTC (
To clarify, I've manually forced them back to The query:
I guess you can:
(Warning: There is no
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks 99% good to me!
Added a few thoughts in-line.
Test passed. |
Since #4910 stopped counting "stopping" workspaces for billing purposes, any workspace caught in a "stopping" phase would never be force-stopped. This adds a conditional "includeStopping" boolean (defaulting to `false`) to the DB implementation and the meta-instance-controller simply includes that phase in the search. It was discovered that ~200 workspaces were caught in this phase (90% prebuilds) so this phase is necessary to force-stop.
234fbbf
to
9affb83
Compare
/lgtm |
LGTM label has been added. Git tree hash: f4fc46160a894b20bf3fd4dce3b3c841568e376d
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JanKoehnlein Associated issue: #5055 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Since #4910 stopped counting "stopping" workspaces for billing purposes,
any workspace caught in a "stopping" phase would never be force-stopped.
This adds a conditional "excludeStopping" boolean (defaulting to
true
)to the DB implementation and the meta-instance-controller simply includes
that phase in the search.
It was discovered that ~200 workspaces were caught in this phase (90%
prebuilds) so this phase is necessary to force-stop.