Versions in this module Expand all Collapse all v0 v0.1.0 Nov 4, 2026 Changes in this version + func Holder(data string) int + func Wake(data string) bool + type Engine struct + Clock clock.Clock + Concurrency int + DB *store.Store + DataDir string + KeepRuns int + Log io.Writer + Recover func(context.Context, *store.Run) error + Runner Executor + Sync func(context.Context) (map[string]jobs.Job, error) + func (e *Engine) Claim(ctx context.Context, defs map[string]jobs.Job, ...) ([]store.Run, error) + func (e *Engine) Enqueue(ctx context.Context, defs map[string]jobs.Job, ...) error + func (e *Engine) LogJob(name, status string) + func (e *Engine) LogRun(r store.Run) + func (e *Engine) Loop(ctx context.Context, hup <-chan struct{}) error + func (e *Engine) Reconcile(ctx context.Context) error + func (e *Engine) Retention(ctx context.Context) error + func (e *Engine) Start(ctx context.Context, runs []store.Run, defs map[string]jobs.Job) + func (e *Engine) Tick(ctx context.Context) error + func (e *Engine) Wait() + type Executor interface + Run func(context.Context, jobs.Job, store.Run, bool) (store.Run, error) + type Lease struct + func AdoptLock(f *os.File) (*Lease, error) + func Lock(data string) (*Lease, error) + func (l *Lease) Close() error + func (l *Lease) Transfer() + type LockedError struct + PID string + func (e *LockedError) Error() string + type Processes struct + Alive func(int) bool + GroupExists func(int) bool + Kill func(int) error + Start func(int) (time.Time, error)