Skip to main content

ScheduleTaskInput

interface

Fields accepted by task for a scheduled task.

interface ScheduleTaskInput

Import

import { ScheduleTaskInput } from '@modular/sdk';

Members5

catchUpoptional
'latest' | 'none'

What to do about slots missed while the host was closed. `'latest'` (the default) runs once for the most recent missed slot on the next launch; `'none'` skips missed slots.

id
string

Identifier, unique within the mod.

run
TaskHandler<undefined>
schedule
string

When to run: a five-field cron expression (`'0 9 * * *'`) or one of the friendly forms — `'daily HH:MM'`, `'hourly'`, `'weekly <day> HH:MM'`, `'every <N>m'`, `'every <N>h'`.

titleoptional
string

Label shown where the host lists scheduled work.