scheduler

package
v0.0.0-...-847bbec Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpData

func DumpData(file string, data interface{}, overwrite bool)

Types

type SchedulerPool

type SchedulerPool struct {
	Id          string
	Tasks       chan tasks.SchedulerTask
	MaxParallel int
	WG          sync.WaitGroup
	KeepAlive   bool
	PostExecute bool
	Callback    func(task tasks.SchedulerTask)
	State       tasks.SchedulerState
}

func (*SchedulerPool) Init

func (pool *SchedulerPool) Init()

func (*SchedulerPool) Interrupt

func (pool *SchedulerPool) Interrupt()

func (*SchedulerPool) IsJobActive

func (pool *SchedulerPool) IsJobActive(id string) bool

func (*SchedulerPool) IsPaused

func (pool *SchedulerPool) IsPaused() bool

func (*SchedulerPool) IsRunning

func (pool *SchedulerPool) IsRunning() bool

func (*SchedulerPool) IsWorking

func (pool *SchedulerPool) IsWorking() bool

func (*SchedulerPool) NumberOfWorkers

func (pool *SchedulerPool) NumberOfWorkers() int

func (*SchedulerPool) Pause

func (pool *SchedulerPool) Pause()

func (*SchedulerPool) Resume

func (pool *SchedulerPool) Resume()

func (*SchedulerPool) Start

func (pool *SchedulerPool) Start(callback func())

func (*SchedulerPool) Stop

func (pool *SchedulerPool) Stop()

Jump to

Keyboard shortcuts

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