Skip to main content
Version: 0.24

Interface: Schedule

Cron schedule for a Job.

Propertiesโ€‹

args?โ€‹

optional args?: object

Arguments passed to the worker function on each scheduled run.


cronโ€‹

cron: string

Five-field cron expression (e.g. "0 * * * *" for hourly).

Wasp supports minute-level precision.

See pg-boss's scheduling docs for the rationale. Use Crontab Guru to build cron expressions.


executorOptions?โ€‹

optional executorOptions?: ExecutorOptions

Executor-specific options applied only to scheduled runs. These override or extend Job.performExecutorOptions.