taskrunner

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2017 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskRunner

type TaskRunner interface {
	RunTask(task string) (*TaskStatus, error)
}

type TaskRunnerFunc

type TaskRunnerFunc func(task string) (*TaskStatus, error)

func (TaskRunnerFunc) RunTask

func (r TaskRunnerFunc) RunTask(task string) (*TaskStatus, error)

type TaskStatus

type TaskStatus struct {
	Ran bool

	// (optional) note that the task is known to be "already running", prior to this tick
	Running bool

	// Permanent or undefined / unknown error
	Error error

	// Possibly temporary, known errors (eg: failure to place task, task is still running)
	// These errors should probably result in the scheduler arranging for the task to try again
	Warnings []error

	Info   interface{}
	Output interface{}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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