From ff287e2c9a1f6557b5599ec6697c68a891940ed7 Mon Sep 17 00:00:00 2001 From: Ryan Yeske Date: Sun, 3 May 2026 10:11:06 -0700 Subject: [PATCH] Update JobSnooze docstring to say that Attempt does not increment --- error.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/error.go b/error.go index f48372c3..eb74f1a7 100644 --- a/error.go +++ b/error.go @@ -28,9 +28,9 @@ func JobCancel(err error) error { type JobSnoozeError = rivertype.JobSnoozeError // JobSnooze can be returned from a Worker's Work method to cause the job to be -// tried again after the specified duration. This also has the effect of -// incrementing the job's MaxAttempts by 1, meaning that jobs can be repeatedly -// snoozed without ever being discarded. +// tried again after the specified duration. This will not increment the job's +// Attempt count, meaning that jobs can be repeatedly snoozed without ever being +// discarded. // // A special duration of zero can be used to make the job immediately available // to be reworked. This may be useful in cases like where a long-running job is