Skip to content

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

feat: add worker rate limits (#1636)

Max Deichmannfe74c14833e6
diff --git a/worker/src/redis/consumer.ts b/worker/src/redis/consumer.ts
index 65ce0a2bc7..ef76a3472f 100644
--- a/worker/src/redis/consumer.ts
+++ b/worker/src/redis/consumer.ts
@@ -55,6 +55,10 @@ export const evalJobCreator = redis
},
{
connection: redis,
+ limiter: {
+ max: 100,
+ duration: 10_000,
+ },
}
)
: null;
@@ -85,6 +89,10 @@ export const evalJobExecutor = redis
},
{
connection: redis,
+ limiter: {
+ max: 10,
+ duration: 30_000,
+ },
}
)
: null;