🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
fix: rate limit deletions globally to 1 per 3s (#4715)
Steffen Schmitz1e9d8de3055f
diff --git a/worker/src/app.ts b/worker/src/app.tsindex 01956e1e1f..49522fb903 100644--- a/worker/src/app.ts+++ b/worker/src/app.ts@@ -64,12 +64,22 @@ if (env.QUEUE_CONSUMER_TRACE_UPSERT_QUEUE_IS_ENABLED === "true") {if (env.QUEUE_CONSUMER_TRACE_DELETE_QUEUE_IS_ENABLED === "true") {WorkerManager.register(QueueName.TraceDelete, traceDeleteProcessor, {concurrency: env.LANGFUSE_TRACE_DELETE_CONCURRENCY,+ limiter: {+ // Process at most `max` delete jobs per 3 seconds+ max: env.LANGFUSE_TRACE_DELETE_CONCURRENCY,+ duration: 3_000,+ },});}if (env.QUEUE_CONSUMER_PROJECT_DELETE_QUEUE_IS_ENABLED === "true") {WorkerManager.register(QueueName.ProjectDelete, projectDeleteProcessor, {concurrency: env.LANGFUSE_PROJECT_DELETE_CONCURRENCY,+ limiter: {+ // Process at most `max` delete jobs per 3 seconds+ max: env.LANGFUSE_PROJECT_DELETE_CONCURRENCY,+ duration: 3_000,+ },});}