You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8a0fe47
Browse filesBrowse the repository at this point in the historyBrowse files
2.`UPDATE knowledgefile SET abnormal_auto_delete_exempt=1WHERE status IN (3,6,7)`(上线时已有异常记录全部豁免)。
39
+
2.`UPDATE knowledgefile SET abnormal_auto_delete_exempt=1, update_time=update_time WHERE status IN (3,6,7)`(上线时已有异常记录全部豁免;显式写回 `update_time`,避免 `ON UPDATE CURRENT_TIMESTAMP` 把历史失败时间改成部署时间)。
- 并发/重复:先原子认领(`UPDATE ... WHERE claimed_at IS NULL OR claimed_at < now-15m`,只有一个任务 rowcount=1),再行锁复核并调用删除;删除成功/失败后释放认领。崩溃时认领 15 分钟后可被下一轮接管。同一文件不会重复回收,重复任务只产生跳过日志。
0 commit comments