Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix: retry failed connections in RateLimiter and disable offlinequeue (#5317)

Steffen Schmitz64d784e16e45
diff --git a/web/src/features/public-api/server/RateLimitService.ts b/web/src/features/public-api/server/RateLimitService.ts
index 6c773eeb56..3c8674ad9b 100644
--- a/web/src/features/public-api/server/RateLimitService.ts
+++ b/web/src/features/public-api/server/RateLimitService.ts
@@ -13,6 +13,7 @@ import {
type ApiAccessScope,
logger,
createNewRedisInstance,
+ redisQueueRetryOptions,
} from "@langfuse/shared/src/server";
import { type NextApiResponse } from "next";
@@ -32,6 +33,8 @@ export class RateLimitService {
redis ??
createNewRedisInstance({
enableAutoPipelining: false, // This may help avoid https://github.com/redis/ioredis/issues/1931
+ enableOfflineQueue: false,
+ ...redisQueueRetryOptions,
});
RateLimitService.instance = new RateLimitService();
}