mirror of
https://github.com/NeuralNomadsAI/CodeNomad.git
synced 2026-07-10 00:14:27 +00:00
fix(instances): streamline instance stopping process and error handling
This commit is contained in:
parent
4a1d53bf2d
commit
8cf6b03761
1 changed files with 4 additions and 7 deletions
|
|
@ -720,14 +720,11 @@ async function stopInstance(id: string) {
|
|||
if (!instance) return
|
||||
|
||||
releaseInstanceResources(id)
|
||||
|
||||
try {
|
||||
await serverApi.deleteWorkspace(id)
|
||||
} catch (error) {
|
||||
log.error("Failed to stop workspace", error)
|
||||
}
|
||||
|
||||
removeInstance(id)
|
||||
|
||||
serverApi.deleteWorkspace(id).catch((error) => {
|
||||
log.error("Failed to stop workspace", error)
|
||||
})
|
||||
}
|
||||
|
||||
async function fetchLspStatus(instanceId: string): Promise<LspStatus[] | undefined> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue