scheduler

package
v6.7.2 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: AGPL-3.0, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeScheduler added in v6.5.0

func MakeScheduler(jobServer *jobs.JobServer) model.Scheduler

func MakeWorker added in v6.5.0

func MakeWorker(jobServer *jobs.JobServer, app AppIface) model.Worker

Types

type AppIface added in v6.5.0

type AppIface interface {
	DeleteAllExpiredPluginKeys() *model.AppError
}

type Worker

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

func (*Worker) DoJob

func (worker *Worker) DoJob(job *model.Job)

func (*Worker) IsEnabled added in v6.5.0

func (worker *Worker) IsEnabled(cfg *model.Config) bool

func (*Worker) JobChannel

func (worker *Worker) JobChannel() chan<- model.Job

func (*Worker) Run

func (worker *Worker) Run()

func (*Worker) Stop

func (worker *Worker) Stop()

Jump to

Keyboard shortcuts

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