jobsscheduler

package
v0.0.0-...-22e582f Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: MIT Imports: 12 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 {
	// contains filtered or unexported fields
}

Scheduler decides which jobs to run in response to received offers.

func New

func New(ctx context.Context, roles []string, stor storage, secr secrets, frameworkID, leaderURL func() string) *Scheduler

New creates fresh instance of jobs scheduler.

func (*Scheduler) FindTasksForOffer

func (sched *Scheduler) FindTasksForOffer(ctx context.Context, offer *mesos.Offer) []mesos.TaskInfo

FindTasksForOffer returns tasks to run for passed offer.

func (*Scheduler) HandleTaskStateUpdate

func (sched *Scheduler) HandleTaskStateUpdate(status *mesos.TaskStatus)

HandleTaskStateUpdate processes task state change.

Jump to

Keyboard shortcuts

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