INNER CODE UNIT · Python

lifespan

heymrun/heym · backend/app/main.py:177

async def lifespan(app: FastAPI):
    logger.info("Starting Heym AI Workflow Platform v%s", settings.resolved_version)
    await lock_service.start()

    async with async_session_maker() as _startup_db:
        await _startup_db.execute(
            sa.text("UPDATE dashboard_conversations SET is_running = false WHERE is_running = true")
        )
        await _startup_db.commit()

    await _reinstall_plugin_dependencies()

    _ensure_playwright_browsers()

    redis_count = warm_up_redis_pools()
    if redis_count > 0:
        logger.info("Redis pools warmed up: %d", redis_count)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…