Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OnFinish ¶ added in v1.54.0
OnFinish adds listener to jobid that will be triggered when job is finished. It returns a function to cancel listening.
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 an asynchronous task started via the rc package
Click to show internal directories.
Click to hide internal directories.