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

Method killExec

packages/computer/src/runtime/runtime.ts:143–151  ·  view source on GitHub ↗
(id: string, options: WorkspaceRuntimeKillOptions = {})

Source from the content-addressed store, hash-verified

141 }
142
143 async killExec(id: string, options: WorkspaceRuntimeKillOptions = {}): Promise<void> {
144 assertExecutionId(id);
145 const backend = this.#backend(options.backend);
146 if (this.#options.commandBackendIds.has(backend)) {
147 await this.#options.shell().kill(id, options.signal, { backend });
148 return;
149 }
150 await (await this.#options.moduleHandle(backend)).killExec({ id, signal: options.signal });
151 }
152
153 async disposeExec(id: string, options: WorkspaceRuntimeDisposeOptions = {}): Promise<void> {
154 assertExecutionId(id);

Callers

nothing calls this directly

Calls 6

#backendMethod · 0.95
hasMethod · 0.80
shellMethod · 0.80
assertExecutionIdFunction · 0.70
killMethod · 0.65
killExecMethod · 0.65

Tested by

no test coverage detected