🪢 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: make BatchProjectCleaner start conditional for events table (#11483)
Valery Meleshkin5fae64e37794
diff --git a/worker/src/app.ts b/worker/src/app.tsindex 1413035318..4f9b150f4c 100644--- a/worker/src/app.ts+++ b/worker/src/app.ts@@ -551,14 +551,13 @@ if (env.LANGFUSE_BATCH_PROJECT_CLEANER_ENABLED === "true") {for (const table of BATCH_DELETION_TABLES) {// Only start the events table cleaner if the events table experiment is enabledif (- table === "events" &&- env.LANGFUSE_EXPERIMENT_INSERT_INTO_EVENTS_TABLE !== "true"+ table !== "events" ||+ env.LANGFUSE_EXPERIMENT_INSERT_INTO_EVENTS_TABLE === "true") {- continue;+ const cleaner = new BatchProjectCleaner(table);+ batchProjectCleaners.push(cleaner);+ cleaner.start();}- const cleaner = new BatchProjectCleaner(table);- batchProjectCleaners.push(cleaner);- cleaner.start();}}