Align engagement task model and repair missing task generation

This commit is contained in:
A R R R Associates
2026-08-07 15:33:49 +05:30
parent 5ec7f7d446
commit a512aec512
2 changed files with 21 additions and 1 deletions
@@ -5,6 +5,11 @@ from collections import Counter
from sqlalchemy import func, select
# Standalone utilities do not pass through FastAPI startup automatically.
# Importing startup loads the complete SQLAlchemy model registry (including
# ConsultantProfile and all relationship targets) before ORM queries compile.
import app.core.startup # noqa: F401
from app.core.db.common import CommonSessionLocal
from app.modules.services.execution import generate_tasks_for_subscription_if_ready
from app.modules.services.models import (