scheduler

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: AGPL-3.0 Imports: 17 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	OPTION_ADDR = "ADDR"
)

Variables

Functions

This section is empty.

Types

type Sched

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

func (*Sched) BatchDelete

func (s *Sched) BatchDelete(ctx context.Context, actions []*spec.PipelineTask) (data interface{}, err error)

func (*Sched) Cancel

func (s *Sched) Cancel(ctx context.Context, action *spec.PipelineTask) (data interface{}, err error)

func (*Sched) Create

func (s *Sched) Create(ctx context.Context, action *spec.PipelineTask) (data interface{}, err error)

func (*Sched) Exist

func (s *Sched) Exist(ctx context.Context, action *spec.PipelineTask) (created, started bool, err error)

Exist 返回 job 存在情况 created: 调用 create 成功,job 在 etcd 中已创建 started: 调用 start 成功,job 在 cluster 中已存在并开始执行

func (*Sched) GetTaskExecutor added in v1.1.0

func (s *Sched) GetTaskExecutor(executorType string, clusterName string, task *spec.PipelineTask) (bool, tasktypes.TaskExecutor, error)

GetTaskExecutor return bool, task exectuor, error, bool means should it be dispatch to scheduler

func (*Sched) Inspect

func (s *Sched) Inspect(ctx context.Context, action *spec.PipelineTask) (apistructs.TaskInspect, error)

func (*Sched) Kind

func (s *Sched) Kind() types.Kind

func (*Sched) Name

func (s *Sched) Name() types.Name

func (*Sched) Remove

func (s *Sched) Remove(ctx context.Context, action *spec.PipelineTask) (data interface{}, err error)

func (*Sched) Start

func (s *Sched) Start(ctx context.Context, action *spec.PipelineTask) (data interface{}, err error)

func (*Sched) Status

func (s *Sched) Status(ctx context.Context, action *spec.PipelineTask) (desc apistructs.PipelineStatusDesc, err error)

func (*Sched) Update

func (s *Sched) Update(ctx context.Context, action *spec.PipelineTask) (interface{}, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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