Skip to content

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

chore: make trace-delete queue configuration more lax to allow for longer waitig times (#10852)

Valery Meleshkin8c6466b864d7
diff --git a/worker/src/app.ts b/worker/src/app.ts
index a280e26b1d..15baffd0ae 100644
--- a/worker/src/app.ts
+++ b/worker/src/app.ts
@@ -161,6 +161,11 @@ if (env.LANGFUSE_POSTGRES_METERING_DATA_EXPORT_IS_ENABLED === "true") {
if (env.QUEUE_CONSUMER_TRACE_DELETE_QUEUE_IS_ENABLED === "true") {
WorkerManager.register(QueueName.TraceDelete, traceDeleteProcessor, {
concurrency: env.LANGFUSE_TRACE_DELETE_CONCURRENCY,
+ // Same configuration as EvaluationExecution or
+ // BlobStorageIntegrationProcessingQueue queue, see detailed comment there
+ maxStalledCount: 3,
+ lockDuration: 60000, // 60 seconds
+ stalledInterval: 120000, // 120 seconds
limiter: {
// Process at most `max` delete jobs per 2 min
max: env.LANGFUSE_TRACE_DELETE_CONCURRENCY,