schedule

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2026 License: MIT Imports: 12 Imported by: 0

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"`
}

type FileDeps

type FileDeps struct {
	Workspace workspace.Service `json:"workspace"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL