Skip to content

@oona/vlo / host / signalRun

Function: signalRun() ​

signalRun(ctx, runId, name, payload): Promise<SignalRunResult>

Defined in: sdk/ts/sdk/src/host/runs.ts:116

Stores a signal and, when the run is waiting on that name, delivers it in the same transaction. Validated against the registered signal schema when there is one. Never answers 409 for an ended run: the signal is stored and reported as not delivered.

Parameters ​

ctx ​

HostContext

runId ​

string

name ​

string

payload ​

Json

Returns ​

Promise<SignalRunResult>

Throws ​

BadRequest when the payload fails the schema.

Throws ​

RunNotFound when no run has that id.