Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
🚑 fix (#563)
Thibault Le Ouay5ff3db022cd9
diff --git a/apps/web/src/app/api/checker/cron/_cron.ts b/apps/web/src/app/api/checker/cron/_cron.tsindex 7cc3a92a6..4c7e29786 100644--- a/apps/web/src/app/api/checker/cron/_cron.ts+++ b/apps/web/src/app/api/checker/cron/_cron.ts@@ -77,7 +77,7 @@ export const cron = async ({allResult.push(response);if (periodicity === "30s") {// we schedule another task in 30s- const scheduledAt = timestamp / 1000 + 30;+ const scheduledAt = timestamp + 30 * 1000;const response = await createCronTask({row,timestamp: scheduledAt,@@ -93,7 +93,7 @@ export const cron = async ({await Promise.all(allResult);console.log(`End cron for ${periodicity} with ${allResult.length} jobs`);};-+// timestamp needs to be in msconst createCronTask = async ({row,timestamp,@@ -132,7 +132,7 @@ const createCronTask = async ({body: Buffer.from(JSON.stringify(payload)).toString("base64"),},scheduleTime: {- seconds: timestamp,+ seconds: timestamp / 1000,},};