Skip to main content

Class: BatchOperationUnpauseActivities

BatchOperationUnpauseActivities sends unpause requests to batch workflows.

Properties​

activity?​

optional activity?: "type" | "matchAll"

The activity to unpause. If match_all is set to true, all activities will be unpaused.


identity​

identity: string

The identity of the worker/client.


jitter?​

optional jitter?: $Properties | null

If set, the activity will start at a random time within the specified jitter duration, introducing variability to the start time.


matchAll?​

optional matchAll?: boolean | null

BatchOperationUnpauseActivities matchAll.


resetAttempts​

resetAttempts: boolean

Setting this flag will also reset the number of attempts.


resetHeartbeat​

resetHeartbeat: boolean

Setting this flag will also reset the heartbeat details.


type?​

optional type?: string | null

BatchOperationUnpauseActivities type.

Methods​

toJSON()​

toJSON(): object

Converts this BatchOperationUnpauseActivities to JSON.

Returns​

object

JSON object


create()​

Call Signature​

static create(properties?): BatchOperationUnpauseActivities & $Shape

Creates a new BatchOperationUnpauseActivities instance using the specified properties.

Parameters​
properties?​

$Shape

Properties to set

Returns​

BatchOperationUnpauseActivities & $Shape

BatchOperationUnpauseActivities instance

Call Signature​

static create(properties?): BatchOperationUnpauseActivities

Creates a new BatchOperationUnpauseActivities instance using the specified properties.

Parameters​
properties?​

$Properties

Properties to set

Returns​

BatchOperationUnpauseActivities

BatchOperationUnpauseActivities instance


decode()​

static decode(reader, length?): BatchOperationUnpauseActivities & $Shape

Decodes a BatchOperationUnpauseActivities message from the specified reader or buffer.

Parameters​

reader​

Uint8Array<ArrayBufferLike> | Reader

Reader or buffer to decode from

length?​

number

Message length if known beforehand

Returns​

BatchOperationUnpauseActivities & $Shape

BatchOperationUnpauseActivities

Throws​

If the payload is not a reader or valid buffer

Throws​

If required fields are missing


decodeDelimited()​

static decodeDelimited(reader): BatchOperationUnpauseActivities & $Shape

Decodes a BatchOperationUnpauseActivities message from the specified reader or buffer, length delimited.

Parameters​

reader​

Uint8Array<ArrayBufferLike> | Reader

Reader or buffer to decode from

Returns​

BatchOperationUnpauseActivities & $Shape

BatchOperationUnpauseActivities

Throws​

If the payload is not a reader or valid buffer

Throws​

If required fields are missing


encode()​

static encode(message, writer?): Writer

Encodes the specified BatchOperationUnpauseActivities message. Does not implicitly temporal.api.batch.v1.BatchOperationUnpauseActivities.verify|verify messages.

Parameters​

message​

$Properties

BatchOperationUnpauseActivities message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


encodeDelimited()​

static encodeDelimited(message, writer?): Writer

Encodes the specified BatchOperationUnpauseActivities message, length delimited. Does not implicitly temporal.api.batch.v1.BatchOperationUnpauseActivities.verify|verify messages.

Parameters​

message​

$Properties

BatchOperationUnpauseActivities message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


fromObject()​

static fromObject(object): BatchOperationUnpauseActivities

Creates a BatchOperationUnpauseActivities message from a plain object. Also converts values to their respective internal types.

Parameters​

object​

Plain object

Returns​

BatchOperationUnpauseActivities

BatchOperationUnpauseActivities


toObject()​

static toObject(message, options?): object

Creates a plain object from a BatchOperationUnpauseActivities message. Also converts values to other types if specified.

Parameters​

message​

BatchOperationUnpauseActivities

BatchOperationUnpauseActivities

options?​

IConversionOptions

Conversion options

Returns​

object

Plain object