Skip to content

@oona/vlo / index / Activity

Interface: Activity<I, O> ​

Defined in: sdk/ts/sdk/src/core/activity.ts:92

A defined activity: the value activity returns, passed to cmd.task, step and fanOut. I and O are the inferred input and output types.

Type Parameters ​

I ​

I = unknown

O ​

O = unknown

Properties ​

hash ​

readonly hash: string

Defined in: sdk/ts/sdk/src/core/activity.ts:98

Content hash of name, both JSON schemas and the retry policy. It is the version.


input ​

readonly input: ZodType<I>

Defined in: sdk/ts/sdk/src/core/activity.ts:102

Input schema, as given.


jsonSchema ​

readonly jsonSchema: object

Defined in: sdk/ts/sdk/src/core/activity.ts:114

JSON Schema of both schemas, as registered with the host and used for the hash.

input ​

input: Json

output ​

output: Json


kind ​

readonly kind: "activity"

Defined in: sdk/ts/sdk/src/core/activity.ts:94

Discriminator the config loader uses to find activities among a module's exports.


leaseMs ​

readonly leaseMs: number

Defined in: sdk/ts/sdk/src/core/activity.ts:110

Lease per attempt, in milliseconds.


name ​

readonly name: string

Defined in: sdk/ts/sdk/src/core/activity.ts:96

The name given to activity; the key a worker registers its handler under.


output ​

readonly output: ZodType<O>

Defined in: sdk/ts/sdk/src/core/activity.ts:104

Output schema, as given.


queue ​

readonly queue: string

Defined in: sdk/ts/sdk/src/core/activity.ts:108

Queue tasks are dispatched on.


retry ​

readonly retry: RetryPolicy

Defined in: sdk/ts/sdk/src/core/activity.ts:106

Resolved retry policy in wire form.


schemaRef ​

readonly schemaRef: string

Defined in: sdk/ts/sdk/src/core/activity.ts:100

${name}@${hash} — the schema_ref on the wire.


timeoutMs? ​

readonly optional timeoutMs?: number

Defined in: sdk/ts/sdk/src/core/activity.ts:112

Per-attempt wall-clock budget, in milliseconds; absent when none was set.