Skip to content

Commit 4de551a

Browse files
committed
refactor(uptime): tidy worker error edges
1 parent f1197a1 commit 4de551a

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

apps/uptime/src/actions.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,9 @@ const getProbeMetadata = Effect.tryPromise({
333333
const data = await res.json();
334334
cachedProbeIp = typeof data?.ip === "string" ? data.ip : "unknown";
335335
}
336-
} catch {}
336+
} catch {
337+
// Probe metadata is best-effort; uptime checks should continue without it.
338+
}
337339
cachedProbeIp ??= "unknown";
338340
}
339341
return { ip: cachedProbeIp, region: PROBE_REGION };

apps/uptime/src/worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async function defaultReapOrphanScheduler(scheduleId: string): Promise<void> {
4747
}
4848

4949
class SchedulePaused extends Data.TaggedError("SchedulePaused")<
50-
Record<keyof any, never>
50+
Record<string, never>
5151
> {}
5252

5353
class CheckFailed extends Data.TaggedError("CheckFailed")<{

0 commit comments

Comments
 (0)