Defer NATS event publishing until after transaction commits to prevent RAG race condition

FixKBService
ส่งแล้ว
30 มีนาคม 2569 เวลา 22:16 UTC
ผู้เขียน
Kamo
ตั้งค่า
424279b

Events were firing inside @Transactional methods, causing RAGService to read stale data from CockroachDB before the commit. Also auto-defaults aiVisibleToMembers when AI is enabled with no visibility flags set, and guards event publishing to skip DRAFT articles.

เปลี่ยนแปลงทั้งหมด

เหมือนที่คุณเห็นการขนส่ง?

ทุก คน ที่ ได้ รับ การ ปรับ ปรุง เหล่า นี้ จะ ลง ไป ใน ที่ ทํา งาน ของ คุณ โดย อัตโนมัติ. เริ่มให้อิสระและดูมันเติบโตสัปดาห์แล้วสัปดาห์เล่า.

เริ่ม เป็น อิสระ ตลอด ไปแสดงพริ้นซ์