from django.apps import AppConfig


class ClientsConfig(AppConfig):
    name = 'clients'

    # Email -> ticket fetching is handled by a cPanel cron job that runs
    # `manage.py fetch_emails` (with DJANGO_SETTINGS_MODULE=altria_crm.settings_production).
    # The previous in-process background thread was unreliable on LiteSpeed:
    # idle worker processes get reaped (SIGTERM), which killed the polling
    # thread with them, so email sync only ran in sporadic bursts. Running
    # both a cron and the thread also caused duplicate IMAP logins racing to
    # mark messages \Seen, which could drop emails. Cron is now the single
    # source of truth.
