Skip to content

Open-source status page, incident response and uptime monitoring

hotfix: qstash delay (#122)

Maximilian Kaskee95733487fb5
diff --git a/apps/web/src/app/api/checker/cron/_cron.ts b/apps/web/src/app/api/checker/cron/_cron.ts
index d7fa20223..e14e380c0 100644
--- a/apps/web/src/app/api/checker/cron/_cron.ts
+++ b/apps/web/src/app/api/checker/cron/_cron.ts
@@ -57,9 +57,11 @@ export const cron = async ({
pageIds: allPages.map((p) => String(p.pageId)),
};
+ // TODO: fetch + try - catch + retry once
const result = c.publishJSON({
url: `${DEFAULT_URL}/api/checker/regions/${region}`,
body: payload,
+ delay: Math.random() * 180,
});
allResult.push(result);
}
@@ -76,9 +78,11 @@ export const cron = async ({
pageIds: ["openstatus"],
};
+ // TODO: fetch + try - catch + retry once
const result = c.publishJSON({
url: `${DEFAULT_URL}/api/checker/regions/${region}`,
body: payload,
+ delay: Math.random() * 180,
});
allResult.push(result);
}