feat: backend orkestrasyonunu ve arac entegrasyonlarini genislet

This commit is contained in:
2026-03-22 04:45:43 +03:00
parent d07bc365f5
commit 5f4c19a18d
25 changed files with 3750 additions and 82 deletions

View File

@@ -1,14 +1,18 @@
from contextlib import suppress
from app.automation.scheduler import AutomationScheduler
from app.telegram.bot import TelegramBotService
class RuntimeServices:
def __init__(self) -> None:
self.telegram_bot: TelegramBotService | None = None
self.automation_scheduler: AutomationScheduler | None = None
async def shutdown(self) -> None:
if self.automation_scheduler is not None:
with suppress(Exception):
await self.automation_scheduler.stop()
if self.telegram_bot is not None:
with suppress(Exception):
await self.telegram_bot.stop()