"""
News scheduler environment settings.

These settings control the news scheduler behavior and can be set via
environment variables for early initialization control.
"""

from ..env_settings import BooleanSetting


# News scheduler settings
NEWS_SCHEDULER_SETTINGS = [
    BooleanSetting(
        key="news.scheduler.enabled",
        description="Enable or disable the news subscription scheduler",
        default=True,
    ),
    BooleanSetting(
        key="news.scheduler.allow_api_control",
        description="Allow authenticated users to start/stop the global news scheduler via API. "
        "Disable in multi-user deployments to prevent users from affecting each other.",
        default=False,
    ),
]
