# link_agregator/check_active/context.py
from contextvars import ContextVar
STATUS_ONLY_MODE: ContextVar[bool] = ContextVar("STATUS_ONLY_MODE", default=False)

class status_only_mode:
    def __enter__(self):
        self._tok = STATUS_ONLY_MODE.set(True); return self
    def __exit__(self, exc_type, exc, tb):
        STATUS_ONLY_MODE.reset(self._tok)
