Laravel Scheduler Monitoring
Keep an eye on your Laravel scheduled tasks and never miss a failure.
Laravel Scheduler is powerful: a single crontab entry, and all your tasks are elegantly managed in code. But this centralization creates a single point of failure. If the system cron or queue worker crashes, all your tasks stop.
MoniTao integrates seamlessly with Laravel. Use the native pingBefore/pingAfter hook or add a manual ping in your commands for granular monitoring.
seo.cron_laravel.challenges_title
- seo.cron_laravel.challenge_1_title seo.cron_laravel.challenge_1_desc
- seo.cron_laravel.challenge_2_title seo.cron_laravel.challenge_2_desc
- seo.cron_laravel.challenge_3_title seo.cron_laravel.challenge_3_desc
seo.cron_laravel.solution_title
seo.cron_laravel.solution_intro
seo.cron_laravel.solution_example
seo.cron_laravel.setup_title
- seo.cron_laravel.setup_1_title seo.cron_laravel.setup_1_desc
- seo.cron_laravel.setup_2_title seo.cron_laravel.setup_2_desc
- seo.cron_laravel.setup_3_title seo.cron_laravel.setup_3_desc
FAQ - Laravel Scheduler
Which method to choose: native or manual?
The native method (pingOnSuccess) is simpler. The manual method allows pinging at specific moments in the process or including contextual data.
Does the native ping work with queued jobs?
Yes, Laravel pings the URL even if the task is dispatched to a queue. But beware: the ping confirms the dispatch, not necessarily the job execution.
How do I monitor that my schedule:run is actually executing?
Create a heartbeat with a 1-minute period, and add a ping in a job that runs everyMinute(). If the system scheduler crashes, the ping stops.
Can I also use pingOnFailure?
Laravel 8+ supports pingOnFailure(). MoniTao can receive this ping on a different endpoint to track explicit failures in addition to absences.
Useful Links
Ready to Sleep Soundly?
Start free, no credit card required.