How do you track failing cron jobs or background schedules in Laravel?

Chain an HTTP heartbeat ping to your Laravel scheduler using a then() hook (or pingThen()) so any crashed, skipped, or stalled scheduled command triggers a missed check-in alert.

Laravel's task scheduler can fail silently due to server cron misconfigurations, memory limits, or unhandled exceptions while your public web routes continue returning 200 OK.

To track scheduled commands reliably with Acumen Logs Heartbeat Monitoring:

  1. Generate a check-in URL: Create a heartbeat monitor matching your command's schedule (for example, every hour or once every 24 hours).
  2. Attach a completion hook: In routes/console.php (Laravel 11+) or app/Console/Kernel.php (Laravel 10), append a then() callback or pingThen('https://app.acumenlogs.com/heartbeat/your-id/pulse') to the scheduled command.
  3. Distinguish late vs. missed runs: Because the ping only fires after the command succeeds, crashes trigger a missed check-in alert while slow runs are flagged as late in your history.

Read our complete walkthrough on heartbeat monitoring for Laravel.

Related Guides & Articles

Featured Articles

Catch Website Failures
Before Your Customers

Catch checkout failures, API crashes, and broken user journeys before they cost you trust and money.
Verified check mark
10 monitors for free
Verified check mark
AI test generation
Verified check mark
Real-time alerts
Verified check mark
Public status pages

Trusted by Top-tier product companies

Monitor Your Websites
Get screenshots and diagnostic logs to investigate issues. Video recording is available on Essentials and Pro.
SSL, RDAP, RUM — We Have It
Easily monitor uptime, user journeys, APIs, and more. Our AI integration and clean UI help you get set up fast.
Get Alerts and Insights
Get notified by email, Slack, Microsoft Teams, desktop notifications, or webhooks, depending on your plan and alert settings.