Class: ActivityOptions
Represents an ActivityOptions.
Properties
heartbeatTimeout?
optionalheartbeatTimeout?:$Properties|null
Maximum permitted time between successful worker heartbeats.
priority?
optionalpriority?:$Properties|null
Priority metadata. If this message is not present, or any fields are not present, they inherit the values from the workflow.
retryPolicy?
optionalretryPolicy?:$Properties|null
The retry policy for the activity. Will never exceed schedule_to_close_timeout.
scheduleToCloseTimeout?
optionalscheduleToCloseTimeout?:$Properties|null
Indicates how long the caller is willing to wait for an activity completion. Limits how long
retries will be attempted. Either this or start_to_close_timeout must be specified.
(-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --)
scheduleToStartTimeout?
optionalscheduleToStartTimeout?:$Properties|null
Limits time an activity task can stay in a task queue before a worker picks it up. This
timeout is always non retryable, as all a retry would achieve is to put it back into the same
queue. Defaults to schedule_to_close_timeout or workflow execution timeout if not
specified.
(-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --)
startDelay?
optionalstartDelay?:$Properties|null
Time to wait before making the first activity task available for dispatch. This delay is not applied to retry attempts.
When updated, the time is added to the original schedule_time, not to the current time.
If the resulting time is in the past, the task is made available for dispatch immediately.
startToCloseTimeout?
optionalstartToCloseTimeout?:$Properties|null
Maximum time an activity is allowed to execute after being picked up by a worker. This
timeout is always retryable. Either this or schedule_to_close_timeout must be
specified.
(-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --)
taskQueue?
optionaltaskQueue?:$Properties|null
ActivityOptions taskQueue.
Methods
toJSON()
toJSON():
object
Converts this ActivityOptions to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):ActivityOptions&$Properties
Creates a new ActivityOptions instance using the specified properties.
Parameters
properties?
Properties to set
Returns
ActivityOptions & $Properties
ActivityOptions instance
Call Signature
staticcreate(properties?):ActivityOptions
Creates a new ActivityOptions instance using the specified properties.
Parameters
properties?
Properties to set
Returns
ActivityOptions
ActivityOptions instance
decode()
staticdecode(reader,length?):ActivityOptions&$Properties
Decodes an ActivityOptions 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
ActivityOptions & $Properties
ActivityOptions
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):ActivityOptions&$Properties
Decodes an ActivityOptions message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
ActivityOptions & $Properties
ActivityOptions
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 ActivityOptions message. Does not implicitly temporal.api.activity.v1.ActivityOptions.verify|verify messages.
Parameters
message
ActivityOptions message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified ActivityOptions message, length delimited. Does not implicitly temporal.api.activity.v1.ActivityOptions.verify|verify messages.
Parameters
message
ActivityOptions message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):ActivityOptions
Creates an ActivityOptions message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
ActivityOptions
ActivityOptions
toObject()
statictoObject(message,options?):object
Creates a plain object from an ActivityOptions message. Also converts values to other types if specified.
Parameters
message
ActivityOptions
ActivityOptions
options?
IConversionOptions
Conversion options
Returns
object
Plain object