mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-08-04 14:57:42 +00:00
🦗 fix: Deliver Abort Acknowledgements on Zero-Subscriber Replicas (#14569)
This commit is contained in:
parent
3dc5532111
commit
9fbea04d46
1 changed files with 4 additions and 0 deletions
|
|
@ -505,9 +505,13 @@ export class RedisEventTransport implements IEventTransport {
|
|||
|
||||
try {
|
||||
const parsed = JSON.parse(message) as PubSubMessage;
|
||||
/** Aborts, preempts, and abort acknowledgements are consumed by
|
||||
* transport-internal waiters (e.g. pending-ack resolution), not SSE
|
||||
* subscribers, so they must flow even with zero local subscribers. */
|
||||
if (
|
||||
streamState.count === 0 &&
|
||||
parsed.type !== EventTypes.ABORT &&
|
||||
parsed.type !== EventTypes.ABORT_ACK &&
|
||||
parsed.type !== EventTypes.PREEMPT
|
||||
) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue