MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / shutdownVm

Function shutdownVm

vmm/ui/src/composables/useVmManager.ts:1351–1358  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

1349 }
1350
1351 async function shutdownVm(id: string) {
1352 try {
1353 await vmmRpc.shutdownVm({ id });
1354 loadVMList();
1355 } catch (error) {
1356 recordError('Failed to shutdown VM', error);
1357 }
1358 }
1359
1360 const dangerConfirmEnabled = () => !devMode.value;
1361

Callers

nothing calls this directly

Calls 2

loadVMListFunction · 0.85
recordErrorFunction · 0.85

Tested by

no test coverage detected