Probe

class

gworker_client.probes.Probe

A health check bound to a method name on a class task. The platform calls the method periodically; if it fails the configured number of times, the container is restarted.

Class

python
1class Probe

Methods

on

python
1on(method: str, kind: ProbeKind = 'liveness', period_s: float = 30.0, timeout_s: float = 5.0, failures: int = 3) -> Probe

Probe the given method on the class. kind is 'liveness' (restart on failure) or 'readiness' (stop sending traffic). failures is the number of consecutive failures before action is taken.

← Back to docs