taskpoller

package
v0.0.0-...-0de2bea Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory interface {
	GetTaskPoller(*model.TaskExecution, *model.JobDef) (TaskPoller, error)
}

type FactoryImpl

type FactoryImpl struct {
	TaskExecutionDao dao.TaskExecutionDao
	KubeClient       kubernetes.Interface
}

func (*FactoryImpl) GetTaskPoller

func (factory *FactoryImpl) GetTaskPoller(te *model.TaskExecution, jobDef *model.JobDef) (TaskPoller, error)

type KubeJobTaskPoller

type KubeJobTaskPoller struct {
	Client           kubernetes.Interface
	TaskExecutionDao dao.TaskExecutionDao
}

func (*KubeJobTaskPoller) Poll

func (poller *KubeJobTaskPoller) Poll(te *model.TaskExecution, db *gorm.DB) (bool, error)

type ParallelJobTaskPoller

type ParallelJobTaskPoller struct {
	TaskExecutionDao dao.TaskExecutionDao
	TaskDef          *model.ParallelTask
}

func (*ParallelJobTaskPoller) Poll

func (poller *ParallelJobTaskPoller) Poll(te *model.TaskExecution, db *gorm.DB) (bool, error)

type TaskPoller

type TaskPoller interface {
	// Check if TaskExecution completed
	Poll(*model.TaskExecution, *gorm.DB) (bool, error)
}

Jump to

Keyboard shortcuts

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