Skip to content

Commit a9e6618

Browse files
committed
Merge pull request mongodb#1350 from jgcl/master
fix queue
2 parents 243ba41 + 93845e7 commit a9e6618

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Jenssegers/Mongodb/Queue/MongoQueue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ protected function releaseJobsThatHaveBeenReservedTooLong($queue)
117117
})->get();
118118

119119
foreach ($reserved as $job) {
120-
$attempts = $job['attempts'] + 1;
120+
$attempts = $job['attempts'];
121121
$this->releaseJob($job['_id'], $attempts);
122122
}
123123
}

0 commit comments

Comments
 (0)