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: 385

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 2

Forks: 1

Open Issues: 0

Type:tastyigniter-extension

v1.4.2 2023-02-02 08:09 UTC

This package is auto-updated.

Last update: 2024-12-01 00:11:32 UTC


README

Adds Laravel Horizon to your TastyIgniter application.

Setup

You should ensure that your queue connection is set to redis in your queue configuration file.

  1. Install this extension
  2. Edit extension config/horizon.php config file - see here
  3. Add 'env' => env('APP_ENV', 'production'), to the config file config/horizon.php to run the workers defined in the config file
  4. Run php artisan horizon:assets to publish horizon assets
  5. Run php artisan horizon
  6. Go to Tools > Horizon or navigate to /horizon to access the dashboard.

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.