21 lines
584 B
Python
21 lines
584 B
Python
"""Prescreen worker settings (extends the base settings with prescreen tuning)."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from pydantic import Field
|
|
|
|
from ..core.config import Settings
|
|
|
|
|
|
class PrescreenSettings(Settings):
|
|
"""Settings for worker-prescreen.
|
|
|
|
Inherits all base env and adds the prescreen tunables from core.config.
|
|
They are already declared on `Settings`, so this class just provides a
|
|
typed alias used by the worker.
|
|
"""
|
|
|
|
mq_prefetch_prescreen: int = Field(
|
|
default=1,
|
|
description="Prefetch count for prescreen.q consumer.",
|
|
)
|