perf: reduce idle polling frequency in instrumentation (30s to 60s)

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