Skip to content

Commit 38e234b

Browse files
authored
Update RabbitMQJob.php
1 parent c01f802 commit 38e234b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ public function attempts()
5959
}
6060
}
6161

62-
return 0;
62+
// set default job attempts to 1 so that jobs can run without retry
63+
return 1;
6364
}
6465

6566
/**

0 commit comments

Comments
 (0)