Skip to content

Commit e225d05

Browse files
committed
reload watchfile permission fix
1 parent 0f08b20 commit e225d05

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@ REDIS_HOST=localhost
88
REDIS_PORT=6379
99
SECRET_KEY=CHANGE_ME_IN_PRODUCTION
1010
TELEMETRY_ENABLED=false
11+
RELOAD=False
12+
LOG_LEVEL=INFO
1113

1214
# TODO: Are these needed?
1315
# OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED=True
1416
# OTEL_LOGS_EXPORTER=otlp
1517
# OTEL_METRIC_EXPORT_INTERVAL=5000 # So we don't have to wait 60s for metrics
18+
19+
WATCHFILES_IGNORE_PERMISSION_DENIED=1

app/core/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ def REDIS_URL(self) -> URL:
7878
env_file=".env",
7979
# env_prefix="API_TEMPLATE_",
8080
env_file_encoding="utf-8",
81+
extra="ignore",
8182
)
8283

8384

app/models/echo.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
from pydantic import BaseModel
1+
from typing import Annotated
2+
3+
from pydantic import BaseModel, Field
24

35

46
class Message(BaseModel):
57
"""Simple message model."""
68

7-
message: str
9+
message: Annotated[str, Field(description="Message to be echoed.")]

0 commit comments

Comments
 (0)