Add EMOS retraining snapshot limit and verbose logging

This commit is contained in:
2569718930@qq.com
2026-04-19 04:25:15 +08:00
parent 260550763f
commit 855b1df8dc
4 changed files with 120 additions and 10 deletions
+14 -2
View File
@@ -149,7 +149,7 @@ python scripts\auto_retrain_probability_calibration.py --promote-if-passed --run
Docker 手动触发:
```text
docker compose exec -T polyweather_web python scripts/auto_retrain_probability_calibration.py
docker compose exec -T polyweather_web python scripts/auto_retrain_probability_calibration.py --verbose
```
查看最新报告:
@@ -161,7 +161,19 @@ docker compose exec -T polyweather_web cat /var/lib/polyweather/probability_cali
Docker 允许门禁发布:
```text
docker compose exec -T polyweather_web python scripts/auto_retrain_probability_calibration.py --promote-if-passed --run-tests
docker compose exec -T polyweather_web python scripts/auto_retrain_probability_calibration.py --verbose --promote-if-passed --run-tests
```
如果线上 SQLite 的 `probability_training_snapshots_store` 已经很大,可以先限制最近 N 条快照:
```text
docker compose exec -T polyweather_web python scripts/auto_retrain_probability_calibration.py --verbose --snapshot-limit 20000
```
也可以放到 `.env`
```text
POLYWEATHER_EMOS_TRAINING_SNAPSHOT_LIMIT=20000
```
如果希望自动发布不需要重建镜像,需要在 `.env` 中指定可写参数文件: