Skip oauth_token_monitoring in podcast mode, add required deps

This commit is contained in:
ajaysi
2026-04-06 08:54:29 +05:30
parent 11663b0142
commit 71c0e2ed46
2 changed files with 8 additions and 3 deletions

View File

@@ -179,8 +179,11 @@ from services.startup_health import (
# Trigger reload for monitoring fix
# Import OAuth token monitoring routes
from api.oauth_token_monitoring_routes import router as oauth_token_monitoring_router
# Import OAuth token monitoring routes (skip in podcast-only mode)
if not is_podcast_only_demo_mode():
from api.oauth_token_monitoring_routes import router as oauth_token_monitoring_router
else:
oauth_token_monitoring_router = None
# Import SEO Dashboard endpoints
from api.seo_dashboard import (
@@ -595,7 +598,8 @@ if not PODCAST_ONLY_DEMO_MODE:
# Scheduler dashboard routes
from api.scheduler_dashboard import router as scheduler_dashboard_router
app.include_router(scheduler_dashboard_router)
app.include_router(oauth_token_monitoring_router)
if oauth_token_monitoring_router:
app.include_router(oauth_token_monitoring_router)
# Autonomous Agents API routes (Phase 3A)
from api.agents_api import router as agents_router

View File

@@ -49,6 +49,7 @@ huggingface_hub>=1.1.4
# TTS for podcast
gtts>=2.4.0
pyttsx3>=2.90
# Video composition
moviepy==2.1.2