correct AfterJobRuns doc (#670)
This commit is contained in:
@@ -579,8 +579,8 @@ func WithTags(tags ...string) JobOption {
|
|||||||
// listeners that can be used to listen for job events.
|
// listeners that can be used to listen for job events.
|
||||||
type EventListener func(*internalJob) error
|
type EventListener func(*internalJob) error
|
||||||
|
|
||||||
// AfterJobRuns is used to listen for when a job has run regardless
|
// AfterJobRuns is used to listen for when a job has run
|
||||||
// of any returned error value, and run the provided function.
|
// without an error, and then run the provided function.
|
||||||
func AfterJobRuns(eventListenerFunc func(jobID uuid.UUID, jobName string)) EventListener {
|
func AfterJobRuns(eventListenerFunc func(jobID uuid.UUID, jobName string)) EventListener {
|
||||||
return func(j *internalJob) error {
|
return func(j *internalJob) error {
|
||||||
if eventListenerFunc == nil {
|
if eventListenerFunc == nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user