mirror of
https://git.asonix.dog/asonix/background-jobs.git
synced 2024-11-21 19:40:59 +00:00
max-retries should be 'retries', not 'tries'
This commit is contained in:
parent
fd0ace925d
commit
3eda504199
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ impl MaxRetries {
|
|||
match *self {
|
||||
MaxRetries::Infinite => ShouldStop::Requeue,
|
||||
MaxRetries::Count(ref count) => {
|
||||
if (retry_count as usize) < *count {
|
||||
if (retry_count as usize) <= *count {
|
||||
ShouldStop::Requeue
|
||||
} else {
|
||||
ShouldStop::LimitReached
|
||||
|
|
Loading…
Reference in a new issue