From 0d01bb42c9612a0754439e489efc31487e303132 Mon Sep 17 00:00:00 2001 From: John Roesler Date: Fri, 2 Feb 2024 14:44:39 -0600 Subject: [PATCH] correct AfterJobRuns doc (#670) --- job.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/job.go b/job.go index 093b7f8c..6b0649ee 100644 --- a/job.go +++ b/job.go @@ -579,8 +579,8 @@ func WithTags(tags ...string) JobOption { // listeners that can be used to listen for job events. type EventListener func(*internalJob) error -// AfterJobRuns is used to listen for when a job has run regardless -// of any returned error value, and run the provided function. +// AfterJobRuns is used to listen for when a job has run +// without an error, and then run the provided function. func AfterJobRuns(eventListenerFunc func(jobID uuid.UUID, jobName string)) EventListener { return func(j *internalJob) error { if eventListenerFunc == nil {