Questions tagged [laravel-horizon]

Laravel Horizon is a monitoring and metrics collection and visualization tool for Laravel applications that utilize the framework's queue API. Horizon provides a web-based frontend that displays information about enqueued, processed, and failed jobs.

Laravel Horizon is tool created by the authors of the Laravel PHP Framework for the purpose of monitoring queue metrics and job health in applications that use the framework's queue API.

Horizon includes a background service that collects performance metrics and balances worker processes across queues. The web-based dashboard displays the status of jobs in an application's queue, debugging information for failed jobs, and aggregated performance information.

The current version supports queues that use a Redis backend.

131 questions
74
votes
15 answers

How can I solve "laravel/horizon v1.1.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system"?

When I run composer install on command promp, there exist error like this : Problem 1 - Installation request for laravel/horizon v1.1.0 -> satisfiable by laravel/horizon[v1.1.0]. - laravel/horizon v1.1.0 requires ext-pcntl * -> the…
moses toh
  • 12,344
  • 71
  • 243
  • 443
32
votes
11 answers

Job has been attempted too many times or run too long

I have a job that works flawless locally, but in production I run into issues where it doesn't work. I've encompassed the entire handle() with a try/catch and am not seeing anything logged to Bugsnag, despite many other exceptions elsewhere from…
Ben
  • 60,438
  • 111
  • 314
  • 488
14
votes
3 answers

No query results for model [App\Models\Match]

I'm building an API with Laravel and want to send push notification using the Laravel Notifications system. I've a model for matches (which is basically a post), another user can like this match. When the match is liked, the creator of the post will…
Dees Oomens
  • 4,554
  • 3
  • 29
  • 61
12
votes
2 answers

What is the difference between artisan queue:work and artisan horizon:work?

I am using Laravel queues and Redis with Horizon. Supervisor is running artisan horizon which in turn spawns processes /usr/bin/php7.2 artisan horizon:work redis Is there need to run queue:work at all or can Horizon already process the queue on its…
Margus Pala
  • 8,433
  • 8
  • 42
  • 52
11
votes
6 answers

Laravel Horizon not executing pending jobs - Kubernetes and Docker environment

We have two different pods in Kubernetes for our Laravel app, one running apache serving on port 80, (CMD /usr/sbin/apache2ctl -D FOREGROUND) and another running worker (Laravel Horizon) (CMD php /var/www/artisan horizon) The issue is when I…
Ambuj Soni
  • 201
  • 1
  • 2
  • 6
8
votes
1 answer

Run Laravel Horizon as a background service

My question is what is the best and simple way to run the Laravel Horizon based job workers? My Tech Stack Laravel 5.5 Horizon Redis Queues Centos I have gone through the document https://laravel.com/docs/5.5/horizon How to setup following…
BetaDev
  • 4,516
  • 3
  • 21
  • 47
6
votes
2 answers

Laravel Horizon throws error : Call to undefined function Laravel\Horizon\Console\pcntl_async_signals()

i have succesfully installed and setup laravel-horizon as per documentation when i running this command php artisan horizon it throws below error : Symfony\Component\Debug\Exception\FatalThrowableError : Call to undefined function…
Saurabh Mistry
  • 12,833
  • 5
  • 50
  • 71
6
votes
1 answer

how to edit laravel horizon view

I just install laravel-horizon and already tested using it and everything is okay , however I don't know how to edit laravel horizon view , Above is the overview of my laravel-horizon , anyone can help me how to edit this ? because it seems that…
Lejiend
  • 1,219
  • 2
  • 16
  • 24
5
votes
1 answer

Laravel Horizon Restrictions and Optimization

Is there any rule of thumb or any logical relation between maxProcesses, number of supervisors and the total number of queues in laravel horizon? What if I have 15 supervisors and 40 queues (each supervisor has multiple queues based on their…
Majid Alaeinia
  • 962
  • 2
  • 11
  • 27
5
votes
1 answer

No supervisors are running in Laravel Homestead

I recently installed Horizon on a Laravel project which is running on a Homestead Vagrant box. My issue is that no jobs are being picked up by the queue workers. I have no supervisors: vagrant@homestead:~/Code/project$ artisan…
mykisscool
  • 852
  • 2
  • 9
  • 24
5
votes
1 answer

Redis "Error while reading line from the server." after Laravel 5.6 upgrade

After upgrading to Laravel 5.6 today, I'm encountering a lot of Redis errors all stating: Error while reading line from the server. [tcp://redis.localhost:6379] {"exception":"[object] (Predis\\Connection\\ConnectionException(code: 0): Error while…
user320487
4
votes
0 answers

Laravel horizon processing jobs but not visible

I'm using Laravel forge and have setup Horizon for processing jobs. The jobs are being processed I can see that in the forge logs. However, the jobs are not visible in my horizon dashboard. I can see that horizon is active, everything looks fine but…
Jamie
  • 10,302
  • 32
  • 103
  • 186
4
votes
2 answers

How to retry all failed jobs from Redis queue in Laravel Horizon

How can you retry all failed jobs in Laravel Horizon? There appears to be no "Retry All" button and the artisan command doesn't work as the failed jobs aren't stored in a table.
Dally
  • 1,281
  • 4
  • 18
  • 37
4
votes
0 answers

Laravel Queue running Envoy Task Inconsistent when deployed

I'm building a site which is using laravel envoy to run commands on a remote server. When a button is clicked to run a task then it is added to the Queue (I'm using redis and horizon) so that it is processed in the background and doesn't slow the…
Angus Allman
  • 511
  • 1
  • 6
  • 10
4
votes
1 answer

Laravel horizon supervisor does not restart after horizon::terminate with forge daemon running

Horizon runs fine but only recently, after a deploy, supervisor and queue workers do not start back up again with Horizon GUI showing "Inactive" To get them running again I can: restart the daemon worker from within forge restart the supervisor…
Adam Lambert
  • 1,311
  • 3
  • 24
  • 45
1
2 3
8 9