BFCMBlack Friday 2026: 30% OFF all Starter, Pro & Scale plans with code BFCM2026Claim deal →
All Developer Integrations
Native Fetch · Workers Cron Triggers

Dead-Man's-Switch Monitoring for Cloudflare Workers Cron Triggers.

Wrap your Worker's scheduled() handler with @alertondown/sdk (pure Web Fetch API, zero Node polyfills required) to track execution duration and alert instantly on uncaught exceptions or missed schedules.

Quick Install / Reference
npm install @alertondown/sdk
src/index.ts (Cloudflare Worker)
import { createHeartbeat } from "@alertondown/sdk";

export interface Env {
  ALERTONDOWN_HB_TOKEN: string;
}

export default {
  async scheduled(_controller: ScheduledController, env: Env, ctx: ExecutionContext) {
    const hb = createHeartbeat(env.ALERTONDOWN_HB_TOKEN);
    ctx.waitUntil(
      hb.wrap(async () => {
        // Your periodic R2 cleanup, D1 aggregation, or webhook sync
        await runEdgeMaintenance(env);
      })
    );
  },
};

What you get with AlertOnDown + Cloudflare Workers

Zero Node Polyfills Needed

Pure standard ES modules + global fetch—runs on workerd with ~4.5 KB footprint.

ctx.waitUntil() Friendly

Clean async promise wrapper plays naturally with Cloudflare Workers ExecutionContext.

Monitor Workers & Custom Domains

Verify Cloudflare TLS certificates, DNS/SPF/DMARC, and 5-stage TTFB across independent non-Cloudflare ASNs.

Live Cloudflare Status Feed

Track Cloudflare's official status alongside your Workers via AlertOnDown's 3rd-party dependency catalog.

Cloudflare Workers Integration FAQ

Does @alertondown/sdk require nodejs_compat in wrangler.toml?

No. It uses only standard Web Fetch API and URLSearchParams—no Node built-ins are imported.

How fast do I get alerted if a Worker cron stops firing?

AlertOnDown checks expected interval + grace period continuously and opens an incident the moment a scheduled check-in is missed.

More Integration Guides