perf: reduce idle polling frequency in instrumentation (30s to 60s)
CI / check (push) Successful in 48s
CI / tests-unit (push) Successful in 2m25s
CI / tests-integration (push) Successful in 2m26s
CI / tests-quality (push) Successful in 2m7s
CI / tests-imaging-browsers (push) Successful in 2m23s
CI / tests-ui (push) Successful in 6m11s
CI / preflight (push) Skipped
CI / deploy (push) Successful in 26s

This commit is contained in:
openhands committed 2026-10-22 18:34:19 +02:00
1 parent e96c408ac1
commit 3cb5baabfb
1 file changed
+2 -2
+2 -2
View File
@@ -32,12 +32,12 @@ export async function register() {
); );
const timer = setInterval(() => { const timer = setInterval(() => {
void drainFurnitureImports(); void drainFurnitureImports();
}, 30000); }, 60000);
timer.unref(); timer.unref();
const { sweepExpiredCloudflareBlocks } = await import("@/lib/cloudflare-api"); const { sweepExpiredCloudflareBlocks } = await import("@/lib/cloudflare-api");
const cloudflareSweep = setInterval(() => { const cloudflareSweep = setInterval(() => {
void sweepExpiredCloudflareBlocks(); void sweepExpiredCloudflareBlocks();
}, 30000); }, 60000);
cloudflareSweep.unref(); cloudflareSweep.unref();
// A deploy starts with an empty in-process cache, so prime the hot public // A deploy starts with an empty in-process cache, so prime the hot public