"""Optional uWSGI decorator compatibility for non-uWSGI runtimes."""

try:  # pragma: no cover - exercised only in uWSGI deployments
    from uwsgidecorators import cron
except ImportError:

    def cron(*_args, **_kwargs):
        """Keep scheduled callbacks importable when uWSGI is not installed."""

        def decorate(callback):
            return callback

        return decorate
