Openstatus www.openstatus.dev

hotfix: qstash delay (#122)

authored by

Maximilian Kaske and committed by
GitHub
e9573348 188c30c8

+4
+4
apps/web/src/app/api/checker/cron/_cron.ts
··· 57 57 pageIds: allPages.map((p) => String(p.pageId)), 58 58 }; 59 59 60 + // TODO: fetch + try - catch + retry once 60 61 const result = c.publishJSON({ 61 62 url: `${DEFAULT_URL}/api/checker/regions/${region}`, 62 63 body: payload, 64 + delay: Math.random() * 180, 63 65 }); 64 66 allResult.push(result); 65 67 } ··· 76 78 pageIds: ["openstatus"], 77 79 }; 78 80 81 + // TODO: fetch + try - catch + retry once 79 82 const result = c.publishJSON({ 80 83 url: `${DEFAULT_URL}/api/checker/regions/${region}`, 81 84 body: payload, 85 + delay: Math.random() * 180, 82 86 }); 83 87 allResult.push(result); 84 88 }