Skip to main content

WasmModuleRun

One recorded compute execution: timing, fuel, host-call counts, outcome. NOT a sample of all executions — a successful tick is deliberately not recorded here, because ticks are high-frequency and aggregate into per-minute usage instead, so this table holds every failure plus demand-driven runs plus the reload that follows a terminated worker. Counting rows here to get a success rate gives roughly 50% against a true 0.1-1.6%; computeModuleStats and computeAppDiagnostics read the per-minute rollups for that. Use this for what happened on an individual run and for flow correlation.

type WasmModuleRun {
runId: String!
appId: BigInt!
flowId: String
moduleId: String!
moduleName: String!
triggerSource: String!
entry: String
startedAt: DateTime!
durationUs: Int!
fuelUsed: BigInt!
dbReads: Int!
dbWrites: Int!
egressMsgs: Int!
egressBytes: BigInt!
success: Boolean!
errorMessage: String
circuitAction: String
}

Fields

WasmModuleRun.runId ● String! non-null scalar

Unique run id (UUID).

WasmModuleRun.appId ● BigInt! non-null scalar

The app (tenant).

WasmModuleRun.flowId ● String scalar

Flow correlation id: shared with gm event-log rows and automation runs caused by the same entry call (computeInvoke / automation run / player invoke); ticks mint their own.

WasmModuleRun.moduleId ● String! non-null scalar

The module that ran.

WasmModuleRun.moduleName ● String! non-null scalar

The module name at run time.

WasmModuleRun.triggerSource ● String! non-null scalar

What ran: init | tick | event | invoke.

WasmModuleRun.entry ● String scalar

The guest entry point (e.g. an invoke export name).

WasmModuleRun.startedAt ● DateTime! non-null scalar

When the run started.

WasmModuleRun.durationUs ● Int! non-null scalar

Wall-clock duration in microseconds.

WasmModuleRun.fuelUsed ● BigInt! non-null scalar

Fuel consumed by the run.

WasmModuleRun.dbReads ● Int! non-null scalar

Host data-API reads performed.

WasmModuleRun.dbWrites ● Int! non-null scalar

Host data-API writes performed.

WasmModuleRun.egressMsgs ● Int! non-null scalar

Replication messages emitted.

WasmModuleRun.egressBytes ● BigInt! non-null scalar

Replication bytes emitted.

WasmModuleRun.success ● Boolean! non-null scalar

Whether the run succeeded.

WasmModuleRun.errorMessage ● String scalar

Error message when the run failed (trap, fuel, watchdog).

WasmModuleRun.circuitAction ● String scalar

Circuit action taken (e.g. opened, half_open_retry).

Returned By

computeModuleRuns query

Member Of

GmFlowTimeline object