jobrunner

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2018 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobRunner

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

JobRunner loops indefinitely and runs one job at a time

func New

func New(workerQueue chan chan *models.Job, apiClient *apiclient.APIClient, workingDirectory string, logger log.Logger) *JobRunner

New creates a new JobRunner

func (*JobRunner) Shutdown

func (jobRunner *JobRunner) Shutdown()

Shutdown stops the JobRunner gracefully, interrupting all running jobs but requeueing them on the master node.

func (*JobRunner) Start

func (jobRunner *JobRunner) Start()

Start executing jobs

Jump to

Keyboard shortcuts

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