How to tell whether a runner is alive: make_ping, make_k8s
and layer_noop build one.
Functions#
__init__#
__init__(is_alive) -> None| Parameter | Type | Description |
|---|---|---|
is_alive | Callable[[RunnerAddress], Effect[bool]] |
def __init__(self, is_alive: Callable[[RunnerAddress], Effect[bool]]) -> None:
self._is_alive = is_aliveis_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.
| Parameter | Type | Description |
|---|---|---|
address | RunnerAddress |
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)