🪢 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(worker): stop 35s max_execution_time from killing fired background-migration chunk queries (#15001)
JA Castrofd4d66e9c426
diff --git a/worker/src/backgroundMigrations/utils/backfillBase.ts b/worker/src/backgroundMigrations/utils/backfillBase.tsindex 8714fec482..4560891823 100644--- a/worker/src/backgroundMigrations/utils/backfillBase.ts+++ b/worker/src/backgroundMigrations/utils/backfillBase.ts@@ -300,7 +300,16 @@ export async function fireQuery({surface: "worker",route: "background-migration.fireQuery",},- clickhouseSettings: { ...retrySetting },+ clickhouseSettings: {+ // The fire-and-poll pattern intentionally outlives the HTTP request, but+ // the shared client derives a server-side max_execution_time (~35s) from+ // its default request timeout, which kills long chunk queries after the+ // abort (#14999). Override per-query so interactive queries stay capped;+ // retry settings keep precedence.+ max_execution_time: 0,+ timeout_before_checking_execution_speed: 0,+ ...retrySetting,+ },abortSignal: abortController.signal,}).catch((err) => {if (err?.name === "AbortError" || err?.message?.includes("aborted")) {