Skip to main content

Interface: ActivityOptions<In>

Options of ctx.activity (user activities). The task queue is the option, else the declaration's, else the workflow's own queue.

Type Parameters​

In​

In

Properties​

args​

args: In


cancellationType?​

optional cancellationType?: "WAIT_CANCELLATION_COMPLETED" | "TRY_CANCEL" | "ABANDON"


connections?​

optional connections?: string[]

Connections the worker may resolve for this activity (at most 16, H2).


fairnessKey?​

optional fairnessKey?: string


fairnessWeight?​

optional fairnessWeight?: number


headers?​

optional headers?: Headers


heartbeatTimeout?​

optional heartbeatTimeout?: Duration


priority?​

optional priority?: number

1 (highest) to 5; default 3.


retry?​

optional retry?: Partial<RetryPolicy>

Default: 1 s, x2, at most 100 s, unlimited attempts (Temporal's policy).


scheduleToCloseTimeout?​

optional scheduleToCloseTimeout?: Duration


scheduleToStartTimeout?​

optional scheduleToStartTimeout?: Duration


startToCloseTimeout?​

optional startToCloseTimeout?: Duration


summary?​

optional summary?: string

Label in the History tab (at most 200 characters).


taskQueue?​

optional taskQueue?: string