sampoyigi / ti-ext-horizon
Horizon allows you to easily monitor key metrics of your queue system such as job throughput, runtime, and job failures.
Installs: 574
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 1
Open Issues: 0
Type:tastyigniter-package
Requires
- laravel/horizon: ^5.7
- tastyigniter/core: ^v4.0
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.2
- pestphp/pest-plugin-laravel: ^3.0
- rector/rector: ^2.0
- sampoyigi/testbench: ^1.0
README
Laravel Horizon for TastyIgniter Adds Laravel Horizon to your TastyIgniter application.
Setup
You should ensure that your queue connection is set to
redis
in your queue configuration file.
- Install this extension
- After installing this extension, run
php artisan horizon:install
to publish horizon assets - Run
php artisan horizon
to start the horizon process - From the TastyIgniter Admin, go to Tools > Horizon or navigate to
/horizon
to access the dashboard. - Comment out the
App\Providers\HorizonServiceProvider::class
class from yourconfig/app.php
file to configure Dashboard Authorization to use TastyIgniter user permissions. - To keep the horizon process running, you can use a process manager like supervisord or systemd.
For production this command needs to be supervised by a tool like supervisord. Supervisord will take care of restarting a process when it fails.
More information on running Horizon check the laravel docs.
Graphs
Horizon provides a queue usage graph, if you want use them you need to have the TastyIgniter task scheduler correctly configured.