Skip to main content

Class: ContinueAsNewWorkflowExecutionCommandAttributes

Represents a ContinueAsNewWorkflowExecutionCommandAttributes.

Properties​

backoffStartInterval?​

optional backoffStartInterval?: $Properties | null

How long the workflow start will be delayed - not really a "backoff" in the traditional sense.


cronSchedule​

cronSchedule: string

Should be removed. Not necessarily unused but unclear and not exposed by SDKs.


failure?​

optional failure?: $Properties | null

Should be removed


optional header?: $Properties | null

ContinueAsNewWorkflowExecutionCommandAttributes header.


inheritBuildId​

inheritBuildId: boolean

If this is set, the new execution inherits the Build ID of the current execution. Otherwise, the assignment rules will be used to independently assign a Build ID to the new execution. Deprecated. Only considered for versioning v0.2.


initialVersioningBehavior​

initialVersioningBehavior: ContinueAsNewVersioningBehavior

Experimental. Optionally decide the versioning behavior that the first task of the new run should use. For example, choose to AutoUpgrade on continue-as-new instead of inheriting the pinned version of the previous run.


initiator​

initiator: ContinueAsNewInitiator

Should be removed


input?​

optional input?: $Properties | null

ContinueAsNewWorkflowExecutionCommandAttributes input.


lastCompletionResult?​

optional lastCompletionResult?: $Properties | null

Should be removed


memo?​

optional memo?: $Properties | null

ContinueAsNewWorkflowExecutionCommandAttributes memo.


retryPolicy?​

optional retryPolicy?: $Properties | null

ContinueAsNewWorkflowExecutionCommandAttributes retryPolicy.


searchAttributes?​

optional searchAttributes?: $Properties | null

ContinueAsNewWorkflowExecutionCommandAttributes searchAttributes.


taskQueue?​

optional taskQueue?: $Properties | null

ContinueAsNewWorkflowExecutionCommandAttributes taskQueue.


workflowRunTimeout?​

optional workflowRunTimeout?: $Properties | null

Timeout of a single workflow run.


workflowTaskTimeout?​

optional workflowTaskTimeout?: $Properties | null

Timeout of a single workflow task.


workflowType?​

optional workflowType?: $Properties | null

ContinueAsNewWorkflowExecutionCommandAttributes workflowType.

Methods​

toJSON()​

toJSON(): object

Converts this ContinueAsNewWorkflowExecutionCommandAttributes to JSON.

Returns​

object

JSON object


create()​

Call Signature​

static create(properties?): ContinueAsNewWorkflowExecutionCommandAttributes & $Shape

Creates a new ContinueAsNewWorkflowExecutionCommandAttributes instance using the specified properties.

Parameters​
properties?​

$Shape

Properties to set

Returns​

ContinueAsNewWorkflowExecutionCommandAttributes & $Shape

ContinueAsNewWorkflowExecutionCommandAttributes instance

Call Signature​

static create(properties?): ContinueAsNewWorkflowExecutionCommandAttributes

Creates a new ContinueAsNewWorkflowExecutionCommandAttributes instance using the specified properties.

Parameters​
properties?​

$Properties

Properties to set

Returns​

ContinueAsNewWorkflowExecutionCommandAttributes

ContinueAsNewWorkflowExecutionCommandAttributes instance


decode()​

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

Decodes a ContinueAsNewWorkflowExecutionCommandAttributes 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​

ContinueAsNewWorkflowExecutionCommandAttributes & $Shape

ContinueAsNewWorkflowExecutionCommandAttributes

Throws​

If the payload is not a reader or valid buffer

Throws​

If required fields are missing


decodeDelimited()​

static decodeDelimited(reader): ContinueAsNewWorkflowExecutionCommandAttributes & $Shape

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

Parameters​

reader​

Uint8Array<ArrayBufferLike> | Reader

Reader or buffer to decode from

Returns​

ContinueAsNewWorkflowExecutionCommandAttributes & $Shape

ContinueAsNewWorkflowExecutionCommandAttributes

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 ContinueAsNewWorkflowExecutionCommandAttributes message. Does not implicitly temporal.api.command.v1.ContinueAsNewWorkflowExecutionCommandAttributes.verify|verify messages.

Parameters​

message​

$Properties

ContinueAsNewWorkflowExecutionCommandAttributes message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


encodeDelimited()​

static encodeDelimited(message, writer?): Writer

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

Parameters​

message​

$Properties

ContinueAsNewWorkflowExecutionCommandAttributes message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


fromObject()​

static fromObject(object): ContinueAsNewWorkflowExecutionCommandAttributes

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

Parameters​

object​

Plain object

Returns​

ContinueAsNewWorkflowExecutionCommandAttributes

ContinueAsNewWorkflowExecutionCommandAttributes


toObject()​

static toObject(message, options?): object

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

Parameters​

message​

ContinueAsNewWorkflowExecutionCommandAttributes

ContinueAsNewWorkflowExecutionCommandAttributes

options?​

IConversionOptions

Conversion options

Returns​

object

Plain object