Laravel Schedule Monitor


July 24th, 2020

The Laravel Schedule Monitor package by Spatie monitors you scheduled tasks by keeping a log of each time a task starts, end, fails or gets skipped.

I’m proud to announce v1 of @spatie_be’s newest package: laravel-schedule-monitor

This package gives an overview of when scheduled tasks should run and which ones did not run on time or failed.

Technical deep dive:

— Freek Van der Herten (@freekmurze) July 14, 2020

It works by keeping a record of your scheduled tasks in the database, which you can sync with the provided command:

php artisan schedule-monitor:sync

It’s recommended that you run the sync command on deployments to keep the database in line with defined scheduled tasks.

Image Credit: Laravel Schedule Monitor Readme

After you sync your scheduled tasks, you can list them with the provided list command:

php artisan schedule-monitor:list

This package requires Laravel 7.19+ and PHP 7.4+, so be sure your application has the latest versions of Laravel and PHP.

You can learn more about this package, get full installation instructions, and view the source code on GitHub at spatie/laravel-schedule-monitor. Freek Van der Herten also wrote about this package, so check that out!

Paul Redmond

Full stack web developer. Author of Lumen Programming Guide and Docker for PHP Developers.

Filed in: