File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
src/VladimirYuldashev/LaravelQueueRabbitMQ/Queue/Jobs Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ class RabbitMQJob extends Job implements JobContract
2424 /**
2525 * Creates a new instance of RabbitMQJob.
2626 *
27- * @param \Illuminate\Container\Container $container
27+ * @param \Illuminate\Container\Container $container
2828 * @param \VladimirYuldashev\LaravelQueueRabbitMQ\Queue\RabbitMQQueue $connection
29- * @param \PhpAmqpLib\Channel\AMQPChannel $channel
30- * @param string $queue
31- * @param \PhpAmqpLib\Message\AMQPMessage $message
29+ * @param \PhpAmqpLib\Channel\AMQPChannel $channel
30+ * @param string $queue
31+ * @param \PhpAmqpLib\Message\AMQPMessage $message
3232 */
3333 public function __construct (
3434 Container $ container ,
@@ -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 /**
You can’t perform that action at this time.
0 commit comments