scheduler

package
Version: v0.0.0-...-4413804 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddedServer

type AddedServer struct {
}

type Scheduler

type Scheduler struct {
	EventChan chan interface{}
}

func NewScheduler

func NewScheduler() *Scheduler

func (*Scheduler) Loop

func (s *Scheduler) Loop()

type StepGroup

type StepGroup struct {
	Steps      []*flame.Step
	Parents    []*StepGroup
	TaskGroups []*TaskGroup
}

func NewStepGroup

func NewStepGroup() *StepGroup

func (*StepGroup) AddParent

func (t *StepGroup) AddParent(parent *StepGroup) *StepGroup

func (*StepGroup) AddStep

func (t *StepGroup) AddStep(Step *flame.Step) *StepGroup

type SubmittedJob

type SubmittedJob struct {
	ContextId int
}

type TaskGroup

type TaskGroup struct {
	Id              int
	Tasks           []*flame.Task
	Parents         []*TaskGroup
	ParentStepGroup *StepGroup
	Status          TaskGroupStatus
}

func GroupTasks

func GroupTasks(fc *flame.FlowContext) []*TaskGroup

func NewTaskGroup

func NewTaskGroup() *TaskGroup

func (*TaskGroup) AddParent

func (t *TaskGroup) AddParent(parent *TaskGroup) *TaskGroup

func (*TaskGroup) AddTask

func (t *TaskGroup) AddTask(task *flame.Task) *TaskGroup

type TaskGroupStatus

type TaskGroupStatus int
const (
	New TaskGroupStatus = iota
	Waiting
	Scheduled
	Completed
	Failed
)

Jump to

Keyboard shortcuts

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