context.user is null, and the
context carries scheduledAt.
Inline schedule
Add aschedule to createEndpoint to run it on a fixed cadence:
The schedule shape
A schedule is eitherrecurring or oneTime:
frequency takes a different set of fields:
monthly is the one frequency that pins interval to 1. Every other frequency accepts any number —
{ frequency: 'hourly', interval: 6 } runs every six hours.monthlyDay picks the day either by number or by weekday occurrence:
Managing schedules at runtime
ImportZiteSchedules from zitejs/schedules to add or change schedules from inside your logic (for
example, scheduling a reminder when a record is created):
Schedule
inputs are limited to 32 KB. Runtime schedule changes require the app to have been
published at least once.