Monitor the Laravel scheduler
Facts about the platform below come from research checked October 21, 2026. The ping URLs are CronNudge’s. Laravel’s scheduler does nothing until something invokes php artisan schedule:run every minute. If that cron entry disappears, every scheduled command disappears with it, and Laravel does not alert you.
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Facades\Schedule;
Schedule::call(function () {
$url = config('services.cronnudge.url');
Http::timeout(10)->get($url.'/start');
try {
$exit = Artisan::call('backup:run');
if ($exit === 0) {
Http::timeout(10)->get($url);
} else {
Http::timeout(10)->get($url.'/fail');
}
} catch (\Throwable $error) {
Http::timeout(10)->get($url.'/fail');
throw $error;
}
})->dailyAt('03:00')->timezone('UTC');- Keep a separate check on schedule:run itself if you want to know the scheduler process died, not only one command.
- dailyAt uses the app timezone unless you chain timezone(). Match the CronNudge check to that zone.
- withoutOverlapping() is Laravel’s lock. CronNudge overlap alerts are a second signal if you also ping /start and leave run tracking on.
- This snippet is routes/console.php on Laravel 11 and 12. Laravel 10 uses $schedule->call inside app/Console/Kernel.php schedule().
- Add 'cronnudge' => ['url' => env('CRONNUDGE_URL')] to config/services.php and read config('services.cronnudge.url'). After php artisan config:cache, env() outside config files does not load .env.
Longer guide: Scheduler not running · Sidekiq and other Rails schedulers