execution.service.ts
7.06 KB
-
fix(prisma): bump $transaction timeout 5s → 60s · 86ddd374
cold-import 在 swap thrashing 大压力下,单 fact-write 事务可能跑 20s+, 默认 5s timeout abort 整条 patient pipeline。服务器全量 cold-import 跑到 15% (479k/3.15M txn) 就被 "Transaction already closed" 杀死。 4 处 $transaction 加 { maxWait:30000, timeout:60000 }: fact-writer (最热,每 fact 1 次) persona recompute / plan execution / plan engine 上版 风险:长事务期间持锁久,但 cold-import 本身就是串行 patient,无锁竞争。luoqi committed