Add selftest scheduler, queue history, and OpenWrt signal stats
This commit is contained in:
2
main.py
2
main.py
@@ -14,6 +14,7 @@ from services.ssl_alerts import monitor_ssl
|
||||
from services.external_checks import monitor_external
|
||||
from services.incidents import log_incident
|
||||
from services.logging_setup import setup_logging
|
||||
from services.selftest import schedule_selftest
|
||||
import state
|
||||
import handlers.menu
|
||||
import handlers.status
|
||||
@@ -73,6 +74,7 @@ async def main():
|
||||
asyncio.create_task(start_sampler(state.METRICS_STORE, interval=5))
|
||||
asyncio.create_task(queue_worker())
|
||||
asyncio.create_task(weekly_reporter(cfg, bot, ADMIN_IDS, state.DOCKER_MAP))
|
||||
asyncio.create_task(schedule_selftest(cfg, bot, ADMIN_IDS, state.DOCKER_MAP))
|
||||
loop = asyncio.get_running_loop()
|
||||
loop.set_exception_handler(_handle_async_exception)
|
||||
await notify_start()
|
||||
|
||||
Reference in New Issue
Block a user