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: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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