Skip to content

Commit aa95155

Browse files
authored
Fix attempt counter
Attempt counter was not increasing as the job's property was being increased, not the data in the data array.
1 parent af6b1a8 commit aa95155

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/VladimirYuldashev/LaravelQueueRabbitMQ/Queue/Jobs/RabbitMQJob.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ public function release($delay = 0)
9393

9494
// write attempts to job
9595
$job->attempts = $attempts + 1;
96+
$body['data']['attempts'] = $attempts + 1;
9697

9798
$data = $body['data'];
9899

0 commit comments

Comments
 (0)