Skip to content

Commit 5a24202

Browse files
committed
Support unlimited job attempts
1 parent a3ee460 commit 5a24202

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/CloudTasksJob.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ public function setAttempts($attempts)
4040

4141
public function setMaxTries($maxTries)
4242
{
43+
if ((int) $maxTries === -1) {
44+
$maxTries = null;
45+
}
46+
4347
$this->maxTries = $maxTries;
4448
}
4549

0 commit comments

Comments
 (0)