Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface {
common.Service
common.Debuggable
common.Daemon
Create(id string, fn job.Func, opts ...job.Option) (job.Job, error)
Execute(ctx context.Context, t job.Job, schedule string, prioriry int, opts ...executor.Option) error
Cancel(id string) error
Delete(id string, force bool) error
GetResult(id string) (any, error)
Stats(opts StatsOptions) ([]*Stats, error)
}
type Stats ¶
type Stats struct {
ID string `json:"id"`
Schedule string `json:"schedule"`
State string `json:"state"`
Progress float64 `json:"progress"`
StartedAt time.Time `json:"started_at"`
ExecutionTime time.Duration `json:"execution_time"`
Cooldown time.Duration `json:"cooldown"`
Retries uint `json:"retries"`
Labels labels.Set `json:"labels"`
Error string `json:"error"`
}
type StatsOptions ¶
Click to show internal directories.
Click to hide internal directories.