Skip to main content
Any workflow can run on a schedule instead of (or in addition to) being called from an app. Scheduled runs execute in the background with no usercontext.user is null, and the context carries scheduledAt.

Inline schedule

Add a schedule to createEndpoint to run it on a fixed cadence:

The schedule shape

A schedule is either recurring or oneTime:
Each 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.
And the shared fields: monthlyDay picks the day either by number or by weekday occurrence:

Managing schedules at runtime

Import ZiteSchedules 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.