scheduler

package
v1.3.2-rc1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 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 BatchServiceJobScheduler added in v1.1.0

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

BatchServiceJobScheduler is a scheduler for: - batch jobs that run until completion on N number of nodes - service jobs than run until stopped on N number of nodes

func NewBatchServiceJobScheduler added in v1.1.0

func NewBatchServiceJobScheduler(params BatchServiceJobSchedulerParams) *BatchServiceJobScheduler

func (*BatchServiceJobScheduler) Process added in v1.1.0

func (b *BatchServiceJobScheduler) Process(ctx context.Context, evaluation *models.Evaluation) error

type BatchServiceJobSchedulerParams added in v1.1.0

type BatchServiceJobSchedulerParams struct {
	JobStore      jobstore.Store
	Planner       orchestrator.Planner
	NodeSelector  orchestrator.NodeSelector
	RetryStrategy orchestrator.RetryStrategy
	QueueBackoff  time.Duration
	// Clock is the clock used for time-based operations.
	// If not provided, the system clock is used.
	Clock clock.Clock
}

type DaemonJobScheduler added in v1.1.0

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

DaemonJobScheduler is a scheduler for batch jobs that run until completion

func NewDaemonJobScheduler added in v1.1.0

func NewDaemonJobScheduler(params DaemonJobSchedulerParams) *DaemonJobScheduler

func (*DaemonJobScheduler) Process added in v1.1.0

func (b *DaemonJobScheduler) Process(ctx context.Context, evaluation *models.Evaluation) error

type DaemonJobSchedulerParams added in v1.1.0

type DaemonJobSchedulerParams struct {
	JobStore     jobstore.Store
	Planner      orchestrator.Planner
	NodeSelector orchestrator.NodeSelector
}

type OpsJobScheduler

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

OpsJobScheduler is a scheduler for batch jobs that run until completion

func NewOpsJobScheduler

func NewOpsJobScheduler(params OpsJobSchedulerParams) *OpsJobScheduler

func (*OpsJobScheduler) Process

func (b *OpsJobScheduler) Process(ctx context.Context, evaluation *models.Evaluation) error

type OpsJobSchedulerParams

type OpsJobSchedulerParams struct {
	JobStore     jobstore.Store
	Planner      orchestrator.Planner
	NodeSelector orchestrator.NodeSelector
	// Clock is the clock used for time-based operations.
	// If not provided, the system clock is used.
	Clock clock.Clock
}

Jump to

Keyboard shortcuts

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