mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-23 03:40:14 +01:00
feat: Introduce Redis-backed stream services for enhanced job management
- Added createStreamServices function to configure job store and event transport, supporting both Redis and in-memory options. - Updated GenerationJobManager to allow configuration with custom job stores and event transports, improving flexibility for different deployment scenarios. - Refactored IJobStore interface to support asynchronous content retrieval, ensuring compatibility with Redis implementations. - Implemented RedisEventTransport for real-time event delivery across instances, enhancing scalability and responsiveness. - Updated InMemoryJobStore to align with new async patterns for content and run step retrieval, ensuring consistent behavior across storage options.
This commit is contained in:
parent
0c10cf8c22
commit
24c2545d46
9 changed files with 835 additions and 49 deletions
|
|
@ -1,3 +1,4 @@
|
|||
export * from './InMemoryJobStore';
|
||||
export * from './InMemoryEventTransport';
|
||||
export * from './RedisJobStore';
|
||||
export * from './RedisEventTransport';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue