Skip to main content

Interface: IWorkerHostInfo

worker.v1.IWorkerHostInfo

Properties of a WorkerHostInfo.

Implemented by

Properties

currentHostCpuUsage

Optional currentHostCpuUsage: null | number

System used CPU as a float in the range [0.0, 1.0] where 1.0 is defined as all cores on the host pegged.


currentHostMemUsage

Optional currentHostMemUsage: null | number

System used memory as a float in the range [0.0, 1.0] where 1.0 is defined as all available memory on the host is used.


hostName

Optional hostName: null | string

Worker host identifier.


processId

Optional processId: null | string

Worker process identifier. This id only needs to be unique within one host (so using e.g. a unix pid would be appropriate).


workerGroupingKey

Optional workerGroupingKey: null | 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}"