docs/ts/runtime/cron.mdx
new CronJob(name, cfg): CronJob
string
readonly cfg: CronJobConfig
readonly name: string
type CronJobConfig = {
endpoint: () => Promise<unknown>;
title?: string;
} &
| {
every: DurationString;
}
| {
schedule: string;
};
endpoint: () => Promise<unknown>
Promise<unknown>
optional title?: string