scheduler

package
v0.0.0-...-b1a8e8c Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScheduleTaskResult

type ScheduleTaskResult struct {
	TaskID        string
	CorrelationID string
	Driver        string
	ResourceURI   string
	ScheduleTime  time.Time
}

type Service

type Service struct {
	Scheduler       TaskScheduler
	StateRepository state.Repository
	FactoryID       factory.Identifier
}

func (Service) Schedule

func (s Service) Schedule(ctx context.Context, commands []command.ScheduleTaskCommand) ([]ScheduleTaskResult, error)

type TaskScheduler

type TaskScheduler interface {
	Schedule(ctx context.Context, tasks []boltzmann.Task) ([]ScheduleTaskResult, error)
}

type TaskSchedulerDefault

type TaskSchedulerDefault struct {
	AgentRegistry   agent.Registry
	QueueService    queue.Queue
	StateRepository state.Repository
}

func (TaskSchedulerDefault) Schedule

Jump to

Keyboard shortcuts

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