Documentation
¶
Overview ¶
Package daemon owns scheduling passes and the process lifetime lock.
Index ¶
- func Holder(data string) int
- func Wake(data string) bool
- type Engine
- 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
- type Lease
- type LockedError
- type Processes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Engine ¶
type Engine struct {
DB *store.Store
Clock clock.Clock
Runner Executor
Sync func(context.Context) (map[string]jobs.Job, error)
Recover func(context.Context, *store.Run) error
Concurrency, KeepRuns int
DataDir string
Log io.Writer
// contains filtered or unexported fields
}
type LockedError ¶
type LockedError struct{ PID string }
func (*LockedError) Error ¶
func (e *LockedError) Error() string
Click to show internal directories.
Click to hide internal directories.