Skip to content

@oona/vlo / host / heartbeatTask

Function: heartbeatTask() ​

heartbeatTask(ctx, taskId, attempt): Promise<void>

Defined in: sdk/ts/sdk/src/host/worker/complete.ts:119

Extends the attempt's lease by the task's lease_ttl_ms from now.

Parameters ​

ctx ​

HostContext

taskId ​

string

attempt ​

number

Returns ​

Promise<void>

Throws ​

TaskNotFound when no task has that id.

Throws ​

LeaseLost when the task is not running at that attempt any more.