INNER CODE UNIT · Python

_runtime_dependencies_available

emersonfelipesp/netbox-proxbox · netbox_proxbox/__init__.py:156

def _runtime_dependencies_available() -> bool:
    """Return True when the Pydantic-backed runtime modules can be imported."""
    return all(
        importlib_util.find_spec(module_name) is not None
        for module_name in ("pydantic", "pydantic_core")
    )


class ProxboxConfig(PluginConfig):
    """Django app config for the Proxbox NetBox plugin (URLs, queues, job registration).

    Proxbox sync work is enqueued as core NetBox Jobs (see ``jobs.ProxboxSyncJob``) on
    ``netbox.constants.RQ_QUEUE_DEFAULT`` (``jobs.PROXBOX_SYNC_QUEUE_NAME``), so the stock
    ``manage.py rqworker`` without extra queue flags picks them up. We intentionally do not
    register a dedicated plugin RQ queue here (``queues`` empty); legacy jobs may still show
    ``queue_name`` ``netbox_proxbox.sync`` from older releases.
    """

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…