Documentation
¶
Overview ¶
Package cron implements the built-in scheduler: a five-field cron parser and a runner that executes natural-language jobs through the agent.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
Store store.Store
Execute Executor
Deliver Deliverer
Timezone string
MaxConcurrent int
HistoryLimit int
}
Options configures a Runner.
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner ticks once a minute and executes jobs whose schedule has come due.
type Schedule ¶
type Schedule struct {
// contains filtered or unexported fields
}
Schedule is a parsed five-field cron expression.
func Parse ¶
Parse compiles a cron expression. It accepts the five-field form plus the common @daily style shorthands and "@every <duration>".