scheduler

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: MIT Imports: 11 Imported by: 0

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
}

func New

func New(t *table.Table, instanceID uint32, baseURL string, clientTimeout, retryInterval time.Duration, randomizationFactor float64) *Scheduler

func (*Scheduler) NotifyDone

func (s *Scheduler) NotifyDone() <-chan struct{}

func (*Scheduler) Run

func (s *Scheduler) Run(ctx context.Context)

Run runs a loop that reads the next Job from the queue and executees it in it's own goroutine.

func (*Scheduler) Running

func (s *Scheduler) Running() int

Jump to

Keyboard shortcuts

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