scheduler

package
v1.5.7 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scheduler

type Scheduler struct {
	*logger.Logger

	Tasks []types.ITask
	// contains filtered or unexported fields
}

func NewScheduler

func NewScheduler(
	ctx context.Context,
	log *logger.Logger,
	tasks []types.ITask,
	ss common.ServiceStatus,
	numOfConcurrencies int,
) *Scheduler

func (*Scheduler) Interrupt

func (r *Scheduler) Interrupt()

func (*Scheduler) Release

func (r *Scheduler) Release() ([]types.ITask, error)

func (*Scheduler) Run

func (r *Scheduler) Run(ctx context.Context) error

func (*Scheduler) SetIgnore

func (r *Scheduler) SetIgnore(t types.ITask)

Jump to

Keyboard shortcuts

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