INNER CODE UNIT · Python

_reinstall_plugin_dependencies

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

async def _reinstall_plugin_dependencies() -> None:
    """Reinstall declared pip dependencies for installed plugins on startup.

    Container filesystems are ephemeral, so deps installed when a plugin was added
    are lost on recreate; this restores them. No-op when plugins are disabled.
    Failures never block startup.
    """
    if not settings.plugins_enabled:
        return
    try:
        import asyncio

        from sqlalchemy import select

        from app.db.models import Plugin
        from app.models.plugin_schemas import PluginManifest
        from app.services import plugin_store

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…