Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteJob ¶
ExecuteJob executes new job synchronously and returns a Param suitable for output.
func SetInitialJobID ¶
func SetInitialJobID(id int64)
SetInitialJobID allows for setting jobID before starting any jobs.
Types ¶
type Job ¶
type Job struct { ID int64 `json:"id"` Group string `json:"group"` StartTime time.Time `json:"startTime"` EndTime time.Time `json:"endTime"` Error string `json:"error"` Finished bool `json:"finished"` Success bool `json:"success"` Duration float64 `json:"duration"` Output rc.Params `json:"output"` Stop func() `json:"-"` // contains filtered or unexported fields }
Job describes a asynchronous task started via the rc package
type Jobs ¶
type Jobs struct {
// contains filtered or unexported fields
}
Jobs describes a collection of running tasks
func (*Jobs) Expire ¶
func (jobs *Jobs) Expire()
Expire expires any jobs that haven't been collected
func (*Jobs) NewAsyncJob ¶
NewAsyncJob start a new asynchronous Job off
Click to show internal directories.
Click to hide internal directories.