try to use OK alerts to reflect successful checks

This commit is contained in:
Alex Tau 2025-08-15 18:02:43 +03:00
parent d59d5ac4e2
commit 5f9952314d
8 changed files with 22 additions and 17 deletions

View file

@ -96,17 +96,17 @@ async def async_main():
command_manager = CommandHandlerManager(checkers)
await command_manager.attach_handlers(tg_client)
cvars.tg_client.set(tg_client)
else:
logging.info("Telegram integration is disabled")
tg_client = None
cvars.tg_client.set(tg_client)
if config.alert_channels.healthchecks is not None:
healthchecks_client = sender.get_healthchecks_client()
logging.info("Ready to send pings to healthchecks")
cvars.healthchecks_client.set(healthchecks_client)
else:
healthchecks_client = None
logging.info("Healthchecks integration is disabled")
signal.signal(signal.SIGTERM, stop_gracefully)