Skip to content

@oona/vlo / host / remoteReporter

Function: remoteReporter() ​

remoteReporter(completeUrl, token, fetchImpl?): TaskReporter

Defined in: sdk/ts/sdk/src/host/worker/reporters.ts:30

Reports over HTTP to the host that owns the task. completeUrl is the task's base URL (…/v1/tasks/{id}); the three verbs hang off it. Each call has a 10 s timeout and throws a plain Error on a non-2xx answer, which for heartbeat is how a lost lease surfaces.

Parameters ​

completeUrl ​

string

token ​

string | undefined

fetchImpl? ​

FetchLike = globalThis.fetch

Returns ​

TaskReporter