07.4.3.18.2 — Runtime Notification Migration
This commit is contained in:
@@ -4,7 +4,6 @@ from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
|
||||
from src.notifications.service import NotificationService
|
||||
from src.runtime_events.models import RuntimeEvent
|
||||
|
||||
|
||||
@@ -16,4 +15,8 @@ class RuntimeEventPublisher:
|
||||
except RuntimeError:
|
||||
return
|
||||
|
||||
# lazy import, чтобы не ловить circular import:
|
||||
# runtime_events -> notifications -> runtime_events
|
||||
from src.notifications.service import NotificationService
|
||||
|
||||
loop.create_task(NotificationService().handle_runtime_event(event))
|
||||
Reference in New Issue
Block a user