← back to Norma Platform
Norma IG cadence: 8s timeout on Boost fetch (Cody FIX-FIRST, yoloforever cycle 1)
0ff33f9f5ea99c7ce5cbf54e903bc137eee2d278 · 2026-08-15 08:07:03 -0700 · Steve Abrams
3rd-party mybcapps endpoint on a 35-min launchd cron had no fetch timeout ->
a hung call would stack zombie processes. AbortSignal.timeout(8000); abort
falls through to the suggest.json fallback. TK-10588.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Files touched
M agents/instagram-agent/daily-cadence.js
Diff
commit 0ff33f9f5ea99c7ce5cbf54e903bc137eee2d278
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Sat Aug 15 08:07:03 2026 -0700
Norma IG cadence: 8s timeout on Boost fetch (Cody FIX-FIRST, yoloforever cycle 1)
3rd-party mybcapps endpoint on a 35-min launchd cron had no fetch timeout ->
a hung call would stack zombie processes. AbortSignal.timeout(8000); abort
falls through to the suggest.json fallback. TK-10588.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---
agents/instagram-agent/daily-cadence.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/agents/instagram-agent/daily-cadence.js b/agents/instagram-agent/daily-cadence.js
index 6ca2ff5..ae69bb0 100644
--- a/agents/instagram-agent/daily-cadence.js
+++ b/agents/instagram-agent/daily-cadence.js
@@ -99,7 +99,9 @@ async function findProduct(keyword) {
let list = [];
try {
const u = `https://services.mybcapps.com/bc-sf-filter/search?q=${encodeURIComponent(keyword)}&shop=${BOOST_SHOP}&limit=50&page=${page}`;
- const j = await (await fetch(u)).json();
+ // 8s timeout: 3rd-party endpoint on a machine-run cron — a hung fetch would stack zombie
+ // launchd runs every 35min. On abort, catch->break falls through to the suggest.json fallback.
+ const j = await (await fetch(u, { signal: AbortSignal.timeout(8000) })).json();
list = j.products || [];
} catch { break; }
if (!list.length) break;
← 4b58e97 IG cadence: close carousel room-image dedup gap (Cody gate)
·
back to Norma Platform
·
auto-data-snapshot: 2026-08-15T08:12:28 (1 data files) — age b4a10be →