fix(deps): add missing runtime dependencies

- Add prometheus-client, redis, msgpack to requirements.txt
- Update docs to reflect emergency hotfix
This commit is contained in:
Luciabrightcode 2025-12-23 14:47:08 +08:00
parent 180c8cb51a
commit 357411e57c
3 changed files with 5 additions and 0 deletions

View file

@ -28,6 +28,9 @@ Transition the system from a functional prototype to a scalable, production-read
- **SessionRecoveryManager** (`src/core/recovery.py`): - **SessionRecoveryManager** (`src/core/recovery.py`):
- Implemented logic for handling `cf_clearance_expired`, `rate_limit`, etc. - Implemented logic for handling `cf_clearance_expired`, `rate_limit`, etc.
### Maintenance & Hotfixes
- **requirements.txt**: Added missing runtime dependencies (`prometheus-client`, `redis`, `msgpack`) to resolve `ModuleNotFoundError` in worker containers.
### Documentation ### Documentation
- **README.md**: Updated with Production Usage, Scaling, and Monitoring instructions. - **README.md**: Updated with Production Usage, Scaling, and Monitoring instructions.

View file

@ -6,3 +6,4 @@ pydantic==2.5.3
pytest>=8.0.0 pytest>=8.0.0
pytest-asyncio>=0.23.0 pytest-asyncio>=0.23.0
aiohttp==3.9.1 aiohttp==3.9.1
prometheus-client==0.19.0

View file

@ -109,6 +109,7 @@ tests/unit/test_session_core.py .. [100%]
- Removed `shm_size` conflict and legacy version tag. - Removed `shm_size` conflict and legacy version tag.
- **Worker**: Implemented `src/orchestrator/worker.py` for continuous task processing. - **Worker**: Implemented `src/orchestrator/worker.py` for continuous task processing.
- **Monitoring**: Implemented `src/core/monitoring.py` exposing metrics on port 8000. - **Monitoring**: Implemented `src/core/monitoring.py` exposing metrics on port 8000.
- **Hotfix: Runtime Dependencies**: Resolved `ModuleNotFoundError` crashes by adding `prometheus-client`, `redis`, and `msgpack` to `requirements.txt`.
- **Documentation**: Updated `README.md` with production operations guide. - **Documentation**: Updated `README.md` with production operations guide.
## Conclusion ## Conclusion