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{} }
Click to show internal directories.
Click to hide internal directories.