scheduler

package
v0.0.0-...-7d56e27 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PreemptScheduler

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

func NewPreemptScheduler

func NewPreemptScheduler(dao storage.TaskDAO, executionDAO storage.ExecutionDAO,
	refreshInterval time.Duration, limiter *semaphore.Weighted, logger *slog.Logger) *PreemptScheduler

func (*PreemptScheduler) RegisterExecutor

func (p *PreemptScheduler) RegisterExecutor(execs ...executor.Executor)

func (*PreemptScheduler) Schedule

func (p *PreemptScheduler) Schedule(ctx context.Context) error

Jump to

Keyboard shortcuts

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