Add weekly report, multi-admin, docker health cmd, backup tail, openwrt filters
This commit is contained in:
4
main.py
4
main.py
@@ -2,7 +2,7 @@ import asyncio
|
||||
import logging
|
||||
import socket
|
||||
from datetime import datetime
|
||||
from app import bot, dp, cfg, ADMIN_ID
|
||||
from app import bot, dp, cfg, ADMIN_ID, ADMIN_IDS
|
||||
from keyboards import menu_kb
|
||||
from services.docker import discover_containers, docker_watchdog
|
||||
from services.alerts import monitor_resources, monitor_smart
|
||||
@@ -25,6 +25,7 @@ import handlers.help
|
||||
import handlers.callbacks
|
||||
import handlers.arcane
|
||||
import handlers.processes
|
||||
from services.weekly_report import weekly_reporter
|
||||
import handlers.alerts_admin
|
||||
import handlers.config_check
|
||||
|
||||
@@ -71,6 +72,7 @@ async def main():
|
||||
state.METRICS_STORE = MetricsStore()
|
||||
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))
|
||||
loop = asyncio.get_running_loop()
|
||||
loop.set_exception_handler(_handle_async_exception)
|
||||
await notify_start()
|
||||
|
||||
Reference in New Issue
Block a user