Skip to main content

Class: RespondWorkflowTaskFailedRequest

Represents a RespondWorkflowTaskFailedRequest.

Properties​

binaryChecksum​

binaryChecksum: string

Deprecated. Use deployment_options instead. Worker process' unique binary id


cause​

cause: WorkflowTaskFailedCause

Why did the task fail? It's important to note that many of the variants in this enum cannot apply to worker responses. See the type's doc for more.


deployment?​

optional deployment?: $Properties | null

Deployment info of the worker that completed this task. Must be present if user has set WorkerDeploymentOptions regardless of versioning being enabled or not. Deprecated. Replaced with deployment_options.


deploymentOptions?​

optional deploymentOptions?: $Properties | null

Worker deployment options that user has set in the worker.


failure?​

optional failure?: $Properties | null

Failure details


identity​

identity: string

The identity of the worker/client


messages​

messages: $Properties[]

Protocol messages piggybacking on a WFT as a transport


namespace​

namespace: string

RespondWorkflowTaskFailedRequest namespace.


resourceId​

resourceId: string

Resource ID for routing. Contains the workflow ID from the original task.


taskToken​

taskToken: Uint8Array

The task token as received in PollWorkflowTaskQueueResponse


workerVersion?​

optional workerVersion?: $Properties | null

Version info of the worker who processed this task. This message's build_id field should always be set by SDKs. Workers opting into versioning will also set the use_versioning field to true. See message docstrings for more. Deprecated. Use deployment_options instead.

Methods​

toJSON()​

toJSON(): object

Converts this RespondWorkflowTaskFailedRequest to JSON.

Returns​

object

JSON object


create()​

Call Signature​

static create(properties?): RespondWorkflowTaskFailedRequest & $Shape

Creates a new RespondWorkflowTaskFailedRequest instance using the specified properties.

Parameters​
properties?​

$Shape

Properties to set

Returns​

RespondWorkflowTaskFailedRequest & $Shape

RespondWorkflowTaskFailedRequest instance

Call Signature​

static create(properties?): RespondWorkflowTaskFailedRequest

Creates a new RespondWorkflowTaskFailedRequest instance using the specified properties.

Parameters​
properties?​

$Properties

Properties to set

Returns​

RespondWorkflowTaskFailedRequest

RespondWorkflowTaskFailedRequest instance


decode()​

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

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

RespondWorkflowTaskFailedRequest & $Shape

RespondWorkflowTaskFailedRequest

Throws​

If the payload is not a reader or valid buffer

Throws​

If required fields are missing


decodeDelimited()​

static decodeDelimited(reader): RespondWorkflowTaskFailedRequest & $Shape

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

Parameters​

reader​

Uint8Array<ArrayBufferLike> | Reader

Reader or buffer to decode from

Returns​

RespondWorkflowTaskFailedRequest & $Shape

RespondWorkflowTaskFailedRequest

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

Parameters​

message​

$Properties

RespondWorkflowTaskFailedRequest message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


encodeDelimited()​

static encodeDelimited(message, writer?): Writer

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

Parameters​

message​

$Properties

RespondWorkflowTaskFailedRequest message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


fromObject()​

static fromObject(object): RespondWorkflowTaskFailedRequest

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

Parameters​

object​

Plain object

Returns​

RespondWorkflowTaskFailedRequest

RespondWorkflowTaskFailedRequest


toObject()​

static toObject(message, options?): object

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

Parameters​

message​

RespondWorkflowTaskFailedRequest

RespondWorkflowTaskFailedRequest

options?​

IConversionOptions

Conversion options

Returns​

object

Plain object