scheduler

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const Interval = "30s"

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager manages a set of scheduler instances.

func NewManager

func NewManager(l log.Logger, e *common.Etcd, c *cluster.Cluster) *Manager

NewManager returns a scheduler Manager

func (*Manager) Reload

func (m *Manager) Reload()

Reload simply stop and start schedulers selectively.

func (*Manager) Run

func (m *Manager) Run()

Run starts processing of the scheduler manager

func (*Manager) Stop

func (m *Manager) Stop()

Stop the manager

type Scheduler

type Scheduler struct {
	model.Scheduler
	// contains filtered or unexported fields
}

Scheduler does execution time and executes scale actions.

func (*Scheduler) Do

func (s *Scheduler) Do(n string)

Do executes actions

func (*Scheduler) Stop

func (s *Scheduler) Stop()

Stop declared to meet Worker interface

Jump to

Keyboard shortcuts

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