Compare commits

..

2 commits

Author SHA1 Message Date
049ae8fc56 🚧 webdav rework
- use instance instead of class methods
- prettier cache keys
2026-02-22 16:39:25 +00:00
7b65d8c9b5 🧹 production script: use pydantic constrained integers 2026-02-22 16:38:50 +00:00

View file

@ -2,14 +2,14 @@ import os
from granian import Granian
from granian.constants import Interfaces, Loops
from pydantic import BaseModel, Field
from pydantic import BaseModel, PositiveInt
from pydantic_settings import BaseSettings, SettingsConfigDict
class WorkersSettings(BaseModel):
per_core: int = Field(1, ge=1)
max: int | None = Field(None, ge=1)
exact: int | None = Field(None, ge=1)
per_core: PositiveInt = 1
max: PositiveInt | None = None
exact: PositiveInt | None = None
@property
def count(self) -> int: