Skip to content

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

fix: increase legacy job cleanup limits for integration queues (#12004)

Valery Meleshkin59320c61687d
diff --git a/worker/src/features/mixpanel/handleMixpanelIntegrationSchedule.ts b/worker/src/features/mixpanel/handleMixpanelIntegrationSchedule.ts
index 11a3dae850..162d10678f 100644
--- a/worker/src/features/mixpanel/handleMixpanelIntegrationSchedule.ts
+++ b/worker/src/features/mixpanel/handleMixpanelIntegrationSchedule.ts
@@ -52,7 +52,7 @@ export const handleMixpanelIntegrationSchedule = async () => {
if (hasLegacyJobs) {
logger.info("[MIXPANEL] Cleaning up legacy hourly-key jobs");
await mixpanelIntegrationProcessingQueue.drain();
- await mixpanelIntegrationProcessingQueue.clean(0, 0, "failed");
+ await mixpanelIntegrationProcessingQueue.clean(0, 1000, "failed");
}
await mixpanelIntegrationProcessingQueue.addBulk(
diff --git a/worker/src/features/posthog/handlePostHogIntegrationSchedule.ts b/worker/src/features/posthog/handlePostHogIntegrationSchedule.ts
index 427486d45b..7a1ce4bf74 100644
--- a/worker/src/features/posthog/handlePostHogIntegrationSchedule.ts
+++ b/worker/src/features/posthog/handlePostHogIntegrationSchedule.ts
@@ -47,7 +47,7 @@ export const handlePostHogIntegrationSchedule = async () => {
if (hasLegacyJobs) {
logger.info("[POSTHOG] Cleaning up legacy hourly-key jobs");
await postHogIntegrationProcessingQueue.drain();
- await postHogIntegrationProcessingQueue.clean(0, 0, "failed");
+ await postHogIntegrationProcessingQueue.clean(0, 1000, "failed");
}
await postHogIntegrationProcessingQueue.addBulk(