runqueue

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DB                  *gorm.DB
	Store               *runstorage.Store
	NodeID              string
	Interval            time.Duration
	StaleClaimThreshold time.Duration
	LeaderCheck         LeaderCheck
	LaunchRun           LaunchFunc
}

type Dequeuer

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

func NewDequeuer

func NewDequeuer(cfg Config) *Dequeuer

func (*Dequeuer) DrainOnce

func (d *Dequeuer) DrainOnce(ctx context.Context) error

func (*Dequeuer) Run

func (d *Dequeuer) Run(ctx context.Context)

type LaunchFunc

type LaunchFunc func(context.Context, *models.Job, *runstorage.JobRun)

type LeaderCheck

type LeaderCheck func(context.Context) (bool, error)

Jump to

Keyboard shortcuts

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