Skip to main content

EdgeWorker

A WASM edge worker deployed to an environment.

type EdgeWorker {
active: Boolean!
createdAt: Date!
id: Int!
location: EdgeWorkerLocation
name: String!
onFailure: EdgeWorkerOnFailure!
phases: [EdgeWorkerPhase!]!
source: String
updatedAt: Date!
wasmBinary: String
}

Fields

EdgeWorker.active ● Boolean! non-null scalar common

Whether the worker is currently active.

EdgeWorker.createdAt ● Date! non-null scalar common

When the worker was created.

EdgeWorker.id ● Int! non-null scalar common

The unique identifier for the edge worker.

EdgeWorker.location ● EdgeWorkerLocation object common

An optional rule scoping which requests the worker runs on. Runs on all requests when null.

EdgeWorker.name ● String! non-null scalar common

The human-readable name of the edge worker.

EdgeWorker.onFailure ● EdgeWorkerOnFailure! non-null enum common

The behavior to apply when the worker errors at runtime.

EdgeWorker.phases ● [EdgeWorkerPhase!]! non-null enum common

The request lifecycle phases the worker runs in.

EdgeWorker.source ● String scalar common

The original source code, if it was stored. Fetched on demand.

EdgeWorker.updatedAt ● Date! non-null scalar common

When the worker was last modified.

EdgeWorker.wasmBinary ● String scalar common

The base64-encoded compiled WASM binary. Fetched on demand.

Returned By

createEdgeWorker mutation ● setEdgeWorkerActive mutation ● updateEdgeWorker mutation

Member Of

AppEnvironment object