fix(watchdog-w5): suggested_action 欄位不存在 → 改用 action
All checks were successful
CD Pipeline / build-and-deploy (push) Successful in 13m30s
All checks were successful
CD Pipeline / build-and-deploy (push) Successful in 13m30s
ApprovalRecord ORM 只有 action 欄位,suggested_action 僅存於 Pydantic ApprovalRequest 層。新 Pod 啟動後 W-5 拋 AttributeError: "type object 'ApprovalRecord' has no attribute 'suggested_action'"。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -235,7 +235,7 @@ async def _count_pending_stuck_analysis() -> int:
|
||||
and_(
|
||||
ApprovalRecord.status == ApprovalStatus.PENDING,
|
||||
ApprovalRecord.created_at <= cutoff,
|
||||
ApprovalRecord.suggested_action.in_(["", "待分析", "NO_ACTION", None]),
|
||||
ApprovalRecord.action.in_(["", "待分析", "NO_ACTION"]),
|
||||
ApprovalRecord.telegram_message_id.is_(None),
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user