generated from MapColonies/ts-server-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Service health check mechanism
Service that includes connection to DB should depend on his healthcheck interval checking based on DB connection
Good reference on how it should implemented:
based on auth-manager
const healthCheck = (connection: DataSource): HealthCheck => {
return async (): Promise<void> => {
const check = connection.query('SELECT 1').then(() => {
return;
});
return promiseTimeout<void>(DB_CONNECTION_TIMEOUT, check);
};
};Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working