News

Laravel Schedule Monitor

Published
Laravel Schedule Monitor image

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-monitorhttps://t.co/dLHaC1JL6G

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

Technical deep dive: https://t.co/yfliVOEN8f#php pic.twitter.com/HEzn2tSmcT

— 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 photo

Staff writer at Laravel News. Full stack web developer and author.

Filed in

Sponsored

laravelcloud logo
Laravel Cloud

Easily create and manage your servers and deploy your Laravel applications in seconds.

Visit Laravel Cloud

The latest

View all →
CPX: The Composer Package Executor for PHP image

CPX: The Composer Package Executor for PHP

Read article
Laravel AI SDK Adds Human-in-the-Loop Tool Approval image

Laravel AI SDK Adds Human-in-the-Loop Tool Approval

Read article
Pest 5 Released With Test Impact Analysis, Agent Verification, and Evals image

Pest 5 Released With Test Impact Analysis, Agent Verification, and Evals

Read article
Queue-SQL: Run Mass Deletes and Updates Across Parallel Queue Jobs image

Queue-SQL: Run Mass Deletes and Updates Across Parallel Queue Jobs

Read article
Blade Formatting in Laravel Pint image

Blade Formatting in Laravel Pint

Read article
Inertia DevTools Is Now on the Chrome Web Store image

Inertia DevTools Is Now on the Chrome Web Store

Read article