"""ARQ worker configuration."""

from __future__ import annotations

from arq.connections import RedisSettings

from app.config import get_settings
from app.jobs import tasks


class WorkerSettings:
    """
    Run with:
      arq app.jobs.worker.WorkerSettings
    """

    settings = get_settings()

    redis_settings = RedisSettings.from_dsn(settings.redis_url or "redis://localhost:6379/0")
    functions = [
        tasks.scrape_auctions,
        tasks.scrape_tld_prices,
        tasks.backfill_auction_scores,
    ]


