kaskada.health.health_check_watcher
Module Contents
Classes
An implementation of a thread to poll the HealthCheckServicer for the overall status. This implementation is thread-safe. |
Attributes
- class HealthCheckWatcher(health_servicer, interval_seconds=1)[source]
Bases:
threading.Thread
An implementation of a thread to poll the HealthCheckServicer for the overall status. This implementation is thread-safe.
- Parameters:
health_servicer (kaskada.health.health_check_servicer.HealthCheckServicer) –
interval_seconds (int) –
- run()[source]
Starts the thread to continuously poll the provided HealthCheckServicer for the health of the services. To stop the watcher, use the thread-safe stop() method. This thread is designed to infinitely run until the stop() method is called.