You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
None of the models of the custom configuration (pro_tes/config_models.py) forbids extra fields, so pydantic ignores unknown keys:
custom.celery (monitor.timeout, message_maxsize) in pro_tes/config.yaml is not a field of CustomConfig and is dropped.
custom.controllers.celery (models Celery and Monitor) is validated but never read.
Typos in config overlays pass silently. E.g., tes.servce_list leaves the list of backends empty: the app starts healthy, and every POST /tasks fails with 500. This goes against the fail-fast approach of the repository.
Found in the pre-release review of v0.3.0 (finding 9). The dead post_task.timeout is replaced by a working timeout in the fix of the duplicate submissions (separate issue).
Proposed change
Set model_config = ConfigDict(extra="forbid") on all custom config models, so that unknown keys stop the app (and the Celery worker) at startup.
Remove the dead models Celery and Monitor and the keys custom.celery and custom.controllers.celery.
Check the config overlays, Helm values, docs and tests for these keys.
Activity