New alert system and panel de control page
This commit is contained in:
@@ -10,16 +10,24 @@ from datetime import datetime, timedelta, timezone
|
||||
import structlog
|
||||
|
||||
from shared.config.base import BaseServiceSettings
|
||||
from shared.alerts.base_service import AlertServiceMixin
|
||||
from shared.alerts.base_service import BaseAlertService
|
||||
|
||||
logger = structlog.get_logger()
|
||||
|
||||
|
||||
class ProcurementNotificationService(AlertServiceMixin):
|
||||
class ProcurementNotificationService(BaseAlertService):
|
||||
"""Service for sending procurement-related notifications and alerts"""
|
||||
|
||||
def __init__(self, config: BaseServiceSettings):
|
||||
self.config = config
|
||||
super().__init__(config)
|
||||
|
||||
def setup_scheduled_checks(self):
|
||||
"""Procurement service doesn't use scheduled checks - alerts are event-driven"""
|
||||
pass
|
||||
|
||||
async def register_db_listeners(self, conn):
|
||||
"""Procurement service doesn't use database triggers - alerts are event-driven"""
|
||||
pass
|
||||
|
||||
async def send_pos_pending_approval_alert(
|
||||
self,
|
||||
|
||||
Reference in New Issue
Block a user