scheduler

package
v1.8.4-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateStatus

func UpdateStatus(id int64, status string) error

UpdateStatus updates the schedule job status

Types

type Scheduler

type Scheduler interface {
	Schedule(policyID int64, cron string) error
	Unschedule(policyID int64) error
}

Scheduler can be used to schedule or unschedule a scheduled policy Currently, the default scheduler implements its capabilities by delegating the scheduled job of jobservice

func NewScheduler

func NewScheduler(js job.Client) Scheduler

NewScheduler returns an instance of scheduler

Jump to

Keyboard shortcuts

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