Class: WorkerListInfo
Limited worker information returned in the list response. When adding fields here, ensure that it is also added to WorkerInfo (as it carries the full worker information).
Implements
Constructors
constructor
• new WorkerListInfo(properties?): WorkerListInfo
Constructs a new WorkerListInfo.
Parameters
| Name | Type | Description |
|---|---|---|
properties? | IWorkerListInfo | Properties to set |
Returns
Properties
deploymentVersion
• Optional deploymentVersion: null | IWorkerDeploymentVersion
WorkerListInfo deploymentVersion.
Implementation of
IWorkerListInfo.deploymentVersion
drivers
• drivers: IStorageDriverInfo[]
Storage drivers in use by this SDK.
Implementation of
hostName
• hostName: string
Worker host identifier.
Implementation of
plugins
• plugins: IPluginInfo[]
Plugins currently in use by this SDK.
Implementation of
processId
• processId: string
Worker process identifier. This id only needs to be unique within one host (so using e.g. a unix pid would be appropriate).
Implementation of
sdkName
• sdkName: string
WorkerListInfo sdkName.
Implementation of
sdkVersion
• sdkVersion: string
WorkerListInfo sdkVersion.
Implementation of
startTime
• Optional startTime: null | ITimestamp
Worker start time. It can be used to determine worker uptime. (current time - start time)
Implementation of
status
• status: WorkerStatus
Worker status. Defined by SDK.
Implementation of
taskQueue
• taskQueue: string
Task queue this worker is polling for tasks.
Implementation of
workerGroupingKey
• workerGroupingKey: string
Worker grouping identifier. A key to group workers that share the same client+namespace+process. This will be used to build the worker command nexus task queue name: "temporal-sys/worker-commands/{worker_grouping_key}"
Implementation of
IWorkerListInfo.workerGroupingKey
workerIdentity
• workerIdentity: string
Worker identity, set by the client, may not be unique. Usually host_name+(user group name)+process_id, but can be overwritten by the user.
Implementation of
IWorkerListInfo.workerIdentity
workerInstanceKey
• workerInstanceKey: string
Worker identifier, should be unique for the namespace. It is distinct from worker identity, which is not necessarily namespace-unique.
Implementation of
IWorkerListInfo.workerInstanceKey
Methods
toJSON
▸ toJSON(): Object
Converts this WorkerListInfo to JSON.
Returns
Object
JSON object
create
▸ create(properties?): WorkerListInfo
Creates a new WorkerListInfo instance using the specified properties.
Parameters
| Name | Type | Description |
|---|---|---|
properties? | IWorkerListInfo | Properties to set |