scheduler

package
v1.3.1-dev.18.0...-398431f Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SchedulerTimeFormat = "20060102T150405"
)

Variables

This section is empty.

Functions

func NewManager

NewManager creates a new scheduler manager for running the interval job

Types

type Executor

type Executor struct {
	Interval           models.Interval
	IntervalActionsMap map[string]models.IntervalAction
	StartTime          time.Time
	EndTime            time.Time
	NextTime           time.Time
	Frequency          time.Duration
	MarkedDeleted      bool
}

func (*Executor) Initialize

func (executor *Executor) Initialize(interval models.Interval, lc logger.LoggingClient) errors.EdgeX

Initialize initialize the Executor with interval. This function should be invoked after adding or updating the interval.

func (*Executor) IsComplete

func (executor *Executor) IsComplete() bool

IsComplete checks whether the Executor is complete

func (*Executor) UpdateNextTime

func (executor *Executor) UpdateNextTime()

UpdateNextTime increase the NextTime by frequency if the Executor not complete

Jump to

Keyboard shortcuts

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