Skip to content

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

chore: configure global posthog processing rate limit (#6492)

Steffen Schmitz54f3c224a77d
diff --git a/worker/src/app.ts b/worker/src/app.ts
index 79e74af269..d6625cca6e 100644
--- a/worker/src/app.ts
+++ b/worker/src/app.ts
@@ -264,6 +264,11 @@ if (env.QUEUE_CONSUMER_POSTHOG_INTEGRATION_QUEUE_IS_ENABLED === "true") {
postHogIntegrationProcessingProcessor,
{
concurrency: 1,
+ limiter: {
+ // Process at most one PostHog job globally per 10s.
+ max: 1,
+ duration: 10_000,
+ },
},
);
}