This commit is contained in:
@@ -86,3 +86,8 @@
|
||||
### 6. `/metrics` 持續出現 realtime_sales_monthly 欄位不存在 warning
|
||||
- **原因**: 線上表 schema 可能比 ORM 窄,ORM count 會包子查詢並引用不存在欄位。
|
||||
- **修復**: metrics 只需要總筆數時使用 `SELECT COUNT(*) FROM realtime_sales_monthly`,不要透過 `session.query(RealtimeSalesMonthly).count()`。
|
||||
|
||||
### 7. Rebuild 模式造成長時間 502
|
||||
- **原因**: CD 若先 `docker stop/rm` 再 `docker compose build --no-cache`,build 耗時會全部變成服務中斷時間。
|
||||
- **修復**: rebuild 模式必須先 `docker compose build --no-cache momo-app` 成功,才短暫 stop/rm/recreate `momo-app scheduler telegram-bot`。
|
||||
- **救急**: 若 build 已經在跑且三應用容器已被移除,可精準執行 `docker compose up -d --no-deps momo-app scheduler telegram-bot` 先恢復服務;禁止使用 `--remove-orphans`。
|
||||
|
||||
Reference in New Issue
Block a user