Interface: PushedTask
Defined in: sdk/ts/sdk/src/host/transport/types.ts:6
The task as a worker receives it — the HTTP push body, byte for byte.
Properties
activity
activity:
object
Defined in: sdk/ts/sdk/src/host/transport/types.ts:16
Activity name and, when registered, the schema version the output is checked against.
name
name:
string
schema_ref?
optionalschema_ref?:string
attempt
attempt:
number
Defined in: sdk/ts/sdk/src/host/transport/types.ts:14
Attempt number, starting at 1. Every report must carry it back.
complete_url?
optionalcomplete_url?:string
Defined in: sdk/ts/sdk/src/host/transport/types.ts:28
Base URL for ${complete_url}/complete|fail|heartbeat. Absent for in-process work.
heartbeat_ms
heartbeat_ms:
number
Defined in: sdk/ts/sdk/src/host/transport/types.ts:24
How often to heartbeat, in milliseconds: a third of the lease, at least 1 s.
idempotency_key
idempotency_key:
string
Defined in: sdk/ts/sdk/src/host/transport/types.ts:18
Stable per attempt: a worker that sees it twice is being re-pushed, not asked to run again.
input
input:
Json
Defined in: sdk/ts/sdk/src/host/transport/types.ts:20
The activity input.
lease_ms
lease_ms:
number
Defined in: sdk/ts/sdk/src/host/transport/types.ts:22
Lease length in milliseconds; each heartbeat extends it by this much.
run_id
run_id:
string
Defined in: sdk/ts/sdk/src/host/transport/types.ts:10
The run the task belongs to.
step_id
step_id:
string
Defined in: sdk/ts/sdk/src/host/transport/types.ts:12
The workflow step that scheduled it.
task_id
task_id:
string
Defined in: sdk/ts/sdk/src/host/transport/types.ts:8
The task's id; the callback URL is built from it.
timeout_ms?
optionaltimeout_ms?:number
Defined in: sdk/ts/sdk/src/host/transport/types.ts:26
Wall-clock budget for this attempt. The worker aborts the handler at it.