GitHub

RunnerHealthService

API reference for RunnerHealthService.

How to tell whether a runner is alive: make_ping, make_k8s and layer_noop build one.

Functions

__init__

__init__(is_alive) -> None
ParameterTypeDescription
is_aliveCallable[[RunnerAddress], Effect[bool]]
def __init__(self, is_alive: Callable[[RunnerAddress], Effect[bool]]) -> None:
    self._is_alive = is_alive

is_alive

is_alive(address) -> Effect[bool]

Whether the runner at address is responsive; sharding keeps a responsive runner's shards where they are. Never fails.

ParameterTypeDescription
addressRunnerAddress

Returns Effect[bool]

def is_alive(self, address: RunnerAddress) -> Effect[bool]:
    """Whether the runner at ``address`` is responsive; sharding keeps
    a responsive runner's shards where they are. Never fails."""
    return self._is_alive(address)