API-AI-075:Runtime 实例心跳、失联检测与锁批量释放 #221

Open
opened 2026-06-11 21:51:39 +08:00 by wangdl · 0 comments
Owner

目标

处理 Runtime 崩溃/OOM/Docker 重启后留下 locked/running orphan job。RuntimeInstance 已存在于 Prisma schema。Runtime heartbeat 超阈值未更新则标记 lost,lost Runtime 持有的 locked job 可释放。running job 根据 lockUntil 和 heartbeat 判断是否重新排队。若只有单 Runtime 实例 lockUntil 仍是兜底恢复机制。

## 目标 处理 Runtime 崩溃/OOM/Docker 重启后留下 locked/running orphan job。RuntimeInstance 已存在于 Prisma schema。Runtime heartbeat 超阈值未更新则标记 lost,lost Runtime 持有的 locked job 可释放。running job 根据 lockUntil 和 heartbeat 判断是否重新排队。若只有单 Runtime 实例 lockUntil 仍是兜底恢复机制。
wangdl added this to the M-API-AI-RUNTIME:API AI Runtime 调度与落库 milestone 2026-06-11 21:51:39 +08:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wangdl/api-server#221
No description provided.