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
feat(redis): cluster-safe keys for the api, worker and file-server paths
ElastiCache Serverless (Valkey) is always cluster mode, so every multi-key
script, MULTI/EXEC and MGET must stay in one hash slot. Follows the key shapes
of upstream PR LibreChat-AI#17 so this can be dropped when that lands:
- redis-connection.ts: isClusterMode (USE_REDIS_CLUSTER), bullmqPrefix
('{codeapi}' in cluster mode, BullMQ's default otherwise), hashTag.
- runtime-session registry: rtsx:{sess,lock,gen,ckptseq}:{<id>} so the
record+lock scripts are single-slot (not covered by PR LibreChat-AI#17).
- replay state: exec_state/exec_lock/exec_result/tool_history:{<id>};
the stale-execution sweep reads with pipelined GETs instead of a
cross-slot MGET.
- BullMQ prefix on every Queue/Worker/QueueEvents, including hosted apps.
Bridge, egress ledger and tool-call server are not covered (not used by
this deployment).
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Wzy53QgK2dCkSKvEFTySD1
0 commit comments