onconova.core.healthcheck
This module provides an API endpoint for health checking the server and its database.
HealthCheck
¶
Bases: Schema
Schema representing the health status of the server and its components.
Attributes:
Name | Type | Description |
---|---|---|
server |
Literal['ok']
|
Indicates whether the server is online. |
database |
Union[Literal['ok'], Literal['error']]
|
Indicates the status of the database connection. |
database_connection_time_ms |
Optional[float]
|
Time taken to connect to the database in milliseconds. |
migrations |
Union[Literal['ok'], Literal['pending'], Literal['error']]
|
Status of database migrations. |
HealthCheckController
¶
Bases: ControllerBase
API controller for performing health checks on the server and its database.
health_check()
¶
Performs a health check of the server, database connection, and database migrations.
Source code in onconova/core/healthcheck.py
runner