In the Horizon dashboard, there's a metrics dashboard and there you can see the graph of the ongoing "Jobs" and "Queues". In order to record/capture the ongoing queues that happen within your Laravel application, you can make use of the snapshot command.
To do that you have to run the "horizon:snapshot" command like below inside your console kernel class.
/** * Define the application's command schedule. * * @param \Illuminate\Console\Scheduling\Schedule $schedule * @return void */ protected function schedule(Schedule $schedule) { $schedule->command('horizon:snapshot')->everyFiveMinutes(); }
Related Resource
Leave a reply