Skip to content

Commit d0b646f

Browse files
committed
Fix job marked as failed when in a queue with max attempts
1 parent fcc1765 commit d0b646f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CloudTasksJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function setAttempts($attempts)
4141
public function setMaxTries($maxTries)
4242
{
4343
if ((int) $maxTries === -1) {
44-
$maxTries = null;
44+
$maxTries = 0;
4545
}
4646

4747
$this->maxTries = $maxTries;

0 commit comments

Comments
 (0)