interface IScheduledController
Since 0.2.0

The controller handed to a Cron Trigger's scheduled handler.

A real Cloudflare ScheduledController satisfies this structurally.

Properties

readonly
cron: string

The cron expression that fired, exactly as written in wrangler.toml.

This is the only key a dispatcher can match on: the platform reports which of the Worker's configured triggers fired, not a name of our choosing.

readonly
scheduledTime: number

When the trigger was scheduled to fire, in epoch milliseconds.

Usage

import { type IScheduledController } from "cloudflare-plugin/src/index.ts";