package
Version:
v0.3.3
Opens a new window with list of versions in this module.
Published: Nov 10, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package schedule triggers configured scans on their cron schedules.
Next returns the next activation of expr after t, or the zero time.
Validate checks a cron expression. Empty means "no schedule".
type Scheduler struct {
}
Scheduler enqueues runs of scheduled scans.
New returns a scheduler using loc for expressions without CRON_TZ.
NextRun returns the next scheduled run of a scan, or the zero time.
Start starts the scheduler; Stop stops it.
Stop stops the scheduler and waits for running triggers.
Sync reloads all scans from the store. Call it after every change.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.