MCPcopy
hub / github.com/Waishnav/devspace / terminate

Method terminate

src/process-sessions.ts:273–276  ·  view source on GitHub ↗
(workspaceId: string, sessionId: number)

Source from the content-addressed store, hash-verified

271 }
272
273 terminate(workspaceId: string, sessionId: number): void {
274 const session = this.getOwnedSession(workspaceId, sessionId);
275 if (session.running) session.process?.kill("SIGTERM");
276 }
277
278 shutdown(): void {
279 for (const session of this.sessions.values()) {

Callers 1

Calls 2

getOwnedSessionMethod · 0.95
killMethod · 0.65

Tested by

no test coverage detected