Skip to main content

Module workers

Module workers 

Source
Expand description

The worker registry: every worker the master has seen, with its state, kept after it is gone (offline or lost) so its logs can still be found (see archive/PROJECT.md, Worker lifecycle).

The master is its only writer: on Register, at most once per heartbeat interval while the worker is connected, and on every change of state. At start it reads the registry back and counts every worker’s lease from then (master downtime doesn’t count against workers).

Structs§

WatcherHostRecord
A process running a worker’s wait steps, or a code set whose hosts were lost.
WorkerRecord
A worker in the registry.
WorkerRegistration
What a worker reports when it registers.
WorkerWarning
Something wrong with a worker, as it reports it (e.g. a disabled fork server).