🪢 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
import { Job, Processor } from "bullmq";
import {
QueueName,
shouldSkipDeletionFor,
TQueueJobTypes,
} from "@langfuse/shared/src/server";
import { processClickhouseScoreDelete } from "../features/scores/processClickhouseScoreDelete";
export const scoreDeleteProcessor: Processor = async (
job: Job<TQueueJobTypes[QueueName.ScoreDelete]>,
): Promise<void> => {
const { scoreIds, projectId } = job.data.payload;
if (await shouldSkipDeletionFor(projectId, scoreIds, "score")) {
return;
}
await processClickhouseScoreDelete(projectId, scoreIds);
};