webserver_liveness_addon
messageflux.service_addons.webserver_liveness_addon
WebServerLivenessAddon
an addon that adds a small webserver that listens on all routes and returns 200 if the service is alive or 500 otherwise. useful for liveness checks in deployments
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
host |
str
|
the host to listen on |
'0.0.0.0'
|
port |
int
|
the port to listen on |
8080
|
attach
attached the addon to a service, and returns the addon
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
service |
BaseService
|
the service to attach to |
required |
WebServerLivenessAddonException
Bases: Exception
the exception type for this addon