MCPcopy Create free account
hub / github.com/cloudflare/computer / kill

Method kill

packages/computerd/src/exec/runner.ts:287–294  ·  view source on GitHub ↗
(id: string, signal: NodeJS.Signals = "SIGTERM")

Source from the content-addressed store, hash-verified

285 }
286
287 kill(id: string, signal: NodeJS.Signals = "SIGTERM"): void {
288 const record = this.records.get(id);
289 if (record === undefined) {
290 throw new ExecError("ENOENT", `no exec record for id ${id}`);
291 }
292 if (!record.live) return;
293 record.child.kill(signal);
294 }
295
296 dispose(id: string): void {
297 const record = this.records.get(id);

Callers

nothing calls this directly

Calls 2

getMethod · 0.65
killMethod · 0.65

Tested by

no test coverage detected