Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFile ¶
func NewFile(cfg FileConfig, deps FileDeps) (schedule.Registry, error)
NewFile registers schedule/file: Durable cron job table, shared by platform/worker and tool/schedule.
Best practices:
- Point the worker and tool/schedule at one instance, or the agent will schedule jobs nothing fires.
- Jobs carry a source: config jobs are reconciled against the preset on every start, agent jobs are left alone.
- Writes go through a temp file and rename, so a process killed mid-write leaves no truncated table.
Types ¶
type FileConfig ¶
type FileConfig struct {
// Path is JSON file holding the jobs, resolved through the workspace.
Path string `json:"path"`
}
Click to show internal directories.
Click to hide internal directories.