Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Scheduler polls for due tasks and sends them to the TaskDispatcher.
func New ¶
func New(taskStore schedulerStore, dispatchCh chan<- task_dispatcher.DispatchTask, pollInterval time.Duration) *Scheduler
New creates a Scheduler.
func (*Scheduler) RecoverRunning ¶
RecoverRunning resets all 'running' tasks to 'pending'. Must be called synchronously at startup AFTER the Feeder's RecoverFeeding.