plan

package
v0.0.0-...-404dc1e Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GroupTasks

func GroupTasks(fc *flow.Flow) ([]*StepGroup, []*TaskGroup)

func TranslateToInstructionSet

func TranslateToInstructionSet(taskGroups *TaskGroup) (ret *pb.InstructionSet)

Types

type StepGroup

type StepGroup struct {
	Steps      []*flow.Step
	Parents    []*StepGroup
	TaskGroups []*TaskGroup
	sync.Mutex
	// contains filtered or unexported fields
}

func NewStepGroup

func NewStepGroup() *StepGroup

func (*StepGroup) AddParent

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

func (*StepGroup) AddStep

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

func (*StepGroup) WaitForAllTasksToComplete

func (s *StepGroup) WaitForAllTasksToComplete()

type TaskGroup

type TaskGroup struct {
	Id              int
	Tasks           []*flow.Task
	Parents         []*TaskGroup
	ParentStepGroup *StepGroup
	RequestId       uint32 // id for actual request when running
	WaitAt          time.Time
	StartAt         time.Time
	StopAt          time.Time
	Error           error
}

func NewTaskGroup

func NewTaskGroup() *TaskGroup

func (*TaskGroup) AddParent

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

func (*TaskGroup) AddTask

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

func (*TaskGroup) MarkStop

func (t *TaskGroup) MarkStop(err error)

func (*TaskGroup) RequiredResources

func (t *TaskGroup) RequiredResources() *pb.ComputeResource

func (*TaskGroup) String

func (t *TaskGroup) String() string

Jump to

Keyboard shortcuts

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