Skip to content

Commit e239af3

Browse files
committed
fix(deps): declare psutil in requirements.txt — green API Documentation CI
The API Documentation job (and any env without locust) failed with `ModuleNotFoundError: No module named 'psutil'` when importing the app: psutil is imported by src/api/routers/health.py, services/metrics.py, commands/status.py, and tasks/monitoring.py, but was never declared as a dependency — it only happened to be present where locust (Performance Tests) pulled it in transitively. Declare it explicitly (psutil>=5.9.0). Verified locally: `from src.api.main import app; app.openapi()` (the exact docs-job operation) now succeeds.
1 parent 4856afb commit e239af3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@ scikit-learn>=1.2.0
3636

3737
# Monitoring dependencies
3838
prometheus-client>=0.16.0
39+
psutil>=5.9.0 # system metrics — imported by health.py / metrics.py / status.py / monitoring.py

0 commit comments

Comments
 (0)