encore.dev/cron
Classes
CronJob
Constructors
Constructor
new CronJob(name, cfg): CronJob
Parameters
name
string
cfg
Returns
Properties
cfg
readonly cfg: CronJobConfig
name
readonly name: string
Type Aliases
CronJobConfig
type CronJobConfig = {
endpoint: () => Promise<unknown>;
title?: string;
} &
| {
every: DurationString;
}
| {
schedule: string;
};
Type Declaration
endpoint
endpoint: () => Promise<unknown>
Returns
Promise\<unknown>
title?
optional title?: string