(name: str, default: bool = True)
| 37 | |
| 38 | def _env_flag(name: str, default: bool = True) -> bool: |
| 39 | raw = os.environ.get(name, "true" if default else "false").strip().lower() |
| 40 | return raw not in {"0", "false", "no", "off", "disabled"} |
| 41 | |
| 42 | |
| 43 | def scheduler_enabled() -> bool: |
| 44 | return _env_flag("PAPERFLOW_SCHEDULER_ENABLED", True) |
no test coverage detected