fix(api): await Kafka acknowledgements and bound HTTP requests
This commit is contained in:
@@ -25,6 +25,9 @@ class APIConfig:
|
||||
host: str = get_env_str("API_HOST", "0.0.0.0")
|
||||
port: int = get_env_int("API_PORT", 8000)
|
||||
queue_max_size: int = get_env_int("API_QUEUE_MAX_SIZE", 10000)
|
||||
max_body_bytes: int = get_env_int("API_MAX_BODY_BYTES", 65536)
|
||||
read_timeout_seconds: float = get_env_float("API_READ_TIMEOUT_SECONDS", 10)
|
||||
shutdown_timeout_seconds: float = get_env_float("SHUTDOWN_TIMEOUT_SECONDS", 45)
|
||||
worker_stats_url: str = get_env_str(
|
||||
"WORKER_STATS_URL", "http://worker:8001/internal/stats"
|
||||
)
|
||||
@@ -44,6 +47,7 @@ class KafkaConfig:
|
||||
dlq_topic: str = get_env_str("KAFKA_DLQ_TOPIC", "cdr.raw.dlq")
|
||||
consumer_group: str = get_env_str("KAFKA_CONSUMER_GROUP", "cdr-processing-group")
|
||||
auto_offset_reset: str = get_env_str("KAFKA_AUTO_OFFSET_RESET", "earliest")
|
||||
delivery_timeout_seconds: float = get_env_float("KAFKA_DELIVERY_TIMEOUT_SECONDS", 10)
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
|
||||
Reference in New Issue
Block a user