Skip to content

Commit 9199758

Browse files
committed
fix(mothership): increase default redis event limit to 100k from 5k
1 parent 9f2cc02 commit 9199758

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/sim/lib/copilot/request/session/buffer.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ describe('mothership-stream-outbox', () => {
166166
expect(mockRedis.zremrangebyrank).toHaveBeenCalledWith(
167167
'mothership_stream:stream-1:events',
168168
0,
169-
-5_001
169+
-100_001
170170
)
171171
})
172172

apps/sim/lib/copilot/request/session/buffer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const logger = createLogger('SessionBuffer')
1313
const STREAM_OUTBOX_PREFIX = 'mothership_stream:'
1414
const DEFAULT_TTL_SECONDS = 60 * 60
1515
const DEFAULT_COMPLETED_TTL_SECONDS = 5 * 60
16-
const DEFAULT_EVENT_LIMIT = 5_000
16+
const DEFAULT_EVENT_LIMIT = 100_000
1717
const RETRY_DELAYS_MS = [0, 50, 150] as const
1818

1919
type RedisOperationMetadata = {

0 commit comments

Comments
 (0)