Add phase 4 registration and renewal lifecycle management
This commit is contained in:
@@ -25,6 +25,8 @@ from app.modules.documents.models import EngagementDocument, EngagementDocumentV
|
||||
from app.modules.alerts.models import UserAlert
|
||||
from app.modules.notice_cases.models import NoticeCase, NoticeCaseEvent, NoticeCaseHearing, NoticeCaseOrder, NoticeCaseDocument
|
||||
from app.modules.notifications.automation import start_notification_scheduler
|
||||
from app.modules.registrations.service import seed_registration_types
|
||||
from app.modules.registrations import models as registration_models # noqa: F401
|
||||
|
||||
DEFAULT_ROLES = [
|
||||
"System Admin",
|
||||
@@ -955,5 +957,9 @@ def on_startup(app: FastAPI) -> None:
|
||||
finally:
|
||||
db.close()
|
||||
|
||||
# Phase 4 registration lifecycle masters are idempotently seeded.
|
||||
with CommonSessionLocal() as registration_db:
|
||||
seed_registration_types(registration_db)
|
||||
|
||||
# Phase 7O: start alert notification/escalation automation after schema and seed checks.
|
||||
start_notification_scheduler()
|
||||
|
||||
Reference in New Issue
Block a user