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

Function assertExecutionId

packages/computer/src/runtime/runtime.ts:466–471  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

464}
465
466function assertExecutionId(id: string) {
467 if (id.length === 0) throw new Error("Workspace runtime execution id must not be empty.");
468 if (new TextEncoder().encode(id).byteLength > 256) {
469 throw new Error("Workspace runtime execution id exceeds 256 bytes.");
470 }
471}
472
473function resumeToAfter(resume: "tail" | "full" | number | undefined) {
474 if (resume === "tail") return "tail" as const;

Callers 4

execMethod · 0.70
getExecMethod · 0.70
killExecMethod · 0.70
disposeExecMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected