Interface: IRespondWorkflowTaskCompletedRequest
workflowservice.v1.IRespondWorkflowTaskCompletedRequest
Properties of a RespondWorkflowTaskCompletedRequest.
Implemented by
Properties
binaryChecksum
• Optional
binaryChecksum: null
| string
DEPRECATED since 1.21 - use worker_version_stamp
instead.
Worker process' unique binary id
commands
• Optional
commands: null
| ICommand
[]
A list of commands generated when driving the workflow code in response to the new task
forceCreateNewWorkflowTask
• Optional
forceCreateNewWorkflowTask: null
| boolean
Can be used to force creation of a new workflow task, even if no commands have resolved or one would not otherwise have been generated. This is used when the worker knows it is doing something useful, but cannot complete it within the workflow task timeout. Local activities which run for longer than the task timeout being the prime example.
identity
• Optional
identity: null
| string
The identity of the worker/client
messages
• Optional
messages: null
| IMessage
[]
Protocol messages piggybacking on a WFT as a transport
meteringMetadata
• Optional
meteringMetadata: null
| IMeteringMetadata
Local usage data collected for metering
namespace
• Optional
namespace: null
| string
RespondWorkflowTaskCompletedRequest namespace
queryResults
• Optional
queryResults: null
| { [k: string]
: IWorkflowQueryResult
; }
Responses to the queries
field in the task being responded to
returnNewWorkflowTask
• Optional
returnNewWorkflowTask: null
| boolean
If set, the worker wishes to immediately receive the next workflow task as a response to this completion. This can save on polling round-trips.
sdkMetadata
• Optional
sdkMetadata: null
| IWorkflowTaskCompletedMetadata
Data the SDK wishes to record for itself, but server need not interpret, and does not directly impact workflow state.
stickyAttributes
• Optional
stickyAttributes: null
| IStickyExecutionAttributes
May be set by workers to indicate that the worker desires future tasks to be provided with incremental history on a sticky queue.
taskToken
• Optional
taskToken: null
| Uint8Array
The task token as received in PollWorkflowTaskQueueResponse
workerVersionStamp
• Optional
workerVersionStamp: null
| IWorkerVersionStamp
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.