Prevent workspaces from being kept alive when they should not
- Vorherrschende Sprache
- Kotlin
- Sterne
- 33
- Forks
- 18
- Ø Merge
- 2 T. 13 Std.
- Gemergte PRs (30 T.)
- 1
Beschreibung
Functional duplicate of https://github.com/coder/vscode-coder/issues/309 for the Jetbrains extension.
When users stop their workspaces in the dashboard, an idle jetbrains gateway session may reconnect them, and start the workspace when the user is not present. This can incur unnecessary costs for administrators while devs are not active.
We should copy the behavior [Asher describes here](https://github.com/coder/vscode-coder/issues/309#issuecomment-2195472060) if possible.
> Is there a workspace build going on? If so, wait for that build.
> Is the workspace on? If not, prompt to start the workspace and depending on the response go back to 1 or quit.
> Otherwise wait for the agent to be ready then connect, or exit if the agent enters some failed/off state.
Beitragsleitfaden
Rechercherichtung
Lies zunächst das verlinkte vscode-coder issue und den darin referenzierten Kommentar, und verfolge anschließend den Workspace-Verbindungs- und Wiederverbindungsablauf der JetBrains extension. Die Aufgabe ist erfüllt, wenn ein inaktives Gateway einen gestoppten Workspace nicht neu startet, bei Bedarf auf einen aktiven Build oder einen bereiten Agenten wartet und beendet wird, sobald der Agent den Zustand failed oder off erreicht.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- kotlin
- Bereich
- devtools
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100