scheduler

package
v4.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2021 License: MIT Imports: 12 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 time.Duration, retryParams *retry.Retry, randomizationFactor float64, scanFrequency time.Duration, maxRunning int) *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