Documentation
¶
Overview ¶
Package scheduler keeps one Temporal Schedule per backup job with a cron expression. Temporal owns the firing (persistence, overlap policy, catch-up after downtime); each firing starts BackupJobWorkflow exactly like the manual "Run Now" trigger. The API handlers call Sync/Remove on job changes and ReconcileAll repairs drift at startup.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ScheduleID ¶
ScheduleID is the Temporal Schedule id for a job
Types ¶
type Scheduler ¶
type Scheduler struct {
Client client.Client
DB *db.DB
// TimeZone is the IANA timezone cron expressions are evaluated in ("" = UTC)
TimeZone string
}
Scheduler reconciles backup jobs with Temporal Schedules
func (*Scheduler) ReconcileAll ¶
ReconcileAll aligns every schedule with the jobs table: it syncs each job and deletes fallbck-owned schedules whose job no longer exists. Run at server startup.
Click to show internal directories.
Click to hide internal directories.