DEV Community

Tariq Mehmood Khatri
Tariq Mehmood Khatri

Posted on

RabbitMQ Consumer terminated on exception on Laravel Job

I'm using https://github.com/vyuldashev/laravel-queue-rabbitmq to use RabbitMQ on Lumen as Queue Driver.

Queues are working fine and Jobs are consumed by consumer on normal sending. But the consumer gets terminated whenever there's any exception.

public function daemon($connectionName, $queue, WorkerOptions $options): void
{
    if ($this->supportsAsyncSignals()) {
        $this->listenForSignals();
    }

    $lastRestart = $this->getTimestampOfLastQueueRestart();

    /**

Top comments (0)