Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CleanupStep ¶
CleanupStep is the unit of work to execute in case of failure
type Job ¶
type Job struct {
// contains filtered or unexported fields
}
Job contains the definiton of the job to execute.
func (*Job) CleanupStep ¶
func (j *Job) CleanupStep() CleanupStep
func (*Job) ExecutionTimeout ¶
func (*Job) NormalDuration ¶
func (*Job) SuicideTimeout ¶
type Option ¶
type Option func(*Job)
Option is used to configure the Job. It takes on argument: the Job we are operating on.
func Cleanup ¶
func Cleanup(s CleanupStep) Option
Cleanup is the option used to set a step of cleanup
func ExecutionTimeout ¶
ExecutionTimeout is the option used to set the job execution timeout
func NormalDuration ¶
NormalDuration is the option used to set the normal duration of job execution
func SuicideTimeout ¶
SuicideTimeout is the option used to set the job suicide timeout
Click to show internal directories.
Click to hide internal directories.