Class: PollWorkflowTaskQueueRequest
Represents a PollWorkflowTaskQueueRequest.
Properties
binaryChecksum
binaryChecksum:
string
Deprecated. Use deployment_options instead. Each worker process should provide an ID unique to the specific set of code it is running "checksum" in this field name isn't very accurate, it should be though of as an id.
deploymentOptions?
optionaldeploymentOptions?:$Properties|null
Worker deployment options that user has set in the worker.
identity
identity:
string
The identity of the worker/client who is polling this task queue
namespace
namespace:
string
PollWorkflowTaskQueueRequest namespace.
pollerGroupId
pollerGroupId:
string
Unless this is the first poll, the client must pass one of the poller group IDs received in
poller_group_infos of the last the PollWorkflowTaskQueueResponse according to the
instructions. If not set, the poll is routed randomly which can cause it to be blocked
without receiving a task while the queue actually has tasks in another server location.
taskQueue?
optionaltaskQueue?:$Properties|null
PollWorkflowTaskQueueRequest taskQueue.
workerControlTaskQueue
workerControlTaskQueue:
string
A dedicated per-worker Nexus task queue on which the server sends control tasks (e.g. activity cancellation) to this specific worker instance.
workerInstanceKey
workerInstanceKey:
string
A unique key for this worker instance, used for tracking worker lifecycle. This is guaranteed to be unique, whereas identity is not guaranteed to be unique.
workerVersionCapabilities?
optionalworkerVersionCapabilities?:$Properties|null
Deprecated. Use deployment_options instead.
Information about this worker's build identifier and if it is choosing to use the versioning
feature. See the WorkerVersionCapabilities docstring for more.
Methods
toJSON()
toJSON():
object
Converts this PollWorkflowTaskQueueRequest to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):PollWorkflowTaskQueueRequest&$Properties
Creates a new PollWorkflowTaskQueueRequest instance using the specified properties.
Parameters
properties?
Properties to set
Returns
PollWorkflowTaskQueueRequest & $Properties
PollWorkflowTaskQueueRequest instance
Call Signature
staticcreate(properties?):PollWorkflowTaskQueueRequest
Creates a new PollWorkflowTaskQueueRequest instance using the specified properties.
Parameters
properties?
Properties to set
Returns
PollWorkflowTaskQueueRequest
PollWorkflowTaskQueueRequest instance
decode()
staticdecode(reader,length?):PollWorkflowTaskQueueRequest&$Properties
Decodes a PollWorkflowTaskQueueRequest 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
PollWorkflowTaskQueueRequest & $Properties
PollWorkflowTaskQueueRequest
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):PollWorkflowTaskQueueRequest&$Properties
Decodes a PollWorkflowTaskQueueRequest message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
PollWorkflowTaskQueueRequest & $Properties
PollWorkflowTaskQueueRequest
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
encode()
staticencode(message,writer?):Writer
Encodes the specified PollWorkflowTaskQueueRequest message. Does not implicitly temporal.api.workflowservice.v1.PollWorkflowTaskQueueRequest.verify|verify messages.
Parameters
message
PollWorkflowTaskQueueRequest message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified PollWorkflowTaskQueueRequest message, length delimited. Does not implicitly temporal.api.workflowservice.v1.PollWorkflowTaskQueueRequest.verify|verify messages.
Parameters
message
PollWorkflowTaskQueueRequest message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):PollWorkflowTaskQueueRequest
Creates a PollWorkflowTaskQueueRequest message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
PollWorkflowTaskQueueRequest
PollWorkflowTaskQueueRequest
toObject()
statictoObject(message,options?):object
Creates a plain object from a PollWorkflowTaskQueueRequest message. Also converts values to other types if specified.
Parameters
message
PollWorkflowTaskQueueRequest
PollWorkflowTaskQueueRequest
options?
IConversionOptions
Conversion options
Returns
object
Plain object