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

Function svClear

vmm/ui/src/composables/useVmManager.ts:1618–1628  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1616 }
1617
1618 async function svClear() {
1619 try {
1620 const stopped = supervisorProcesses.value.filter(p => svIsStopped(p));
1621 for (const p of stopped) {
1622 await baseRpcCall('/prpc/SvRemove', { id: p.id });
1623 }
1624 await loadSupervisorProcesses();
1625 } catch (error) {
1626 recordError('Failed to clear stopped processes', error);
1627 }
1628 }
1629
1630 onMounted(() => {
1631 watchVmList();

Callers

nothing calls this directly

Calls 4

svIsStoppedFunction · 0.85
baseRpcCallFunction · 0.85
loadSupervisorProcessesFunction · 0.85
recordErrorFunction · 0.85

Tested by

no test coverage detected