How7o
  • Home
  • Tools
  • Prank Screens
  • Learn
  • Blog
  • Contact
Reading: How to Check if Laravel Scheduler Is Running (Cron + Logs)
Share
How7oHow7o
Font ResizerAa
  • OS
Search
  • Home
  • Tools
  • Prank Screens
  • Learn
  • Blog
  • Contact
Follow US
© 2024–2026 How7o. All rights reserved.
How7o > Learn > Web Development > How to Check if Laravel Scheduler Is Running (Cron + Logs)
Web Development

How to Check if Laravel Scheduler Is Running (Cron + Logs)

how7o
By how7o
Last updated: January 13, 2026
6 Min Read
Check if Laravel scheduler is running (cron + php artisan schedule:run)
SHARE

I ran into this when a scheduled job (email + cleanup) simply stopped running on one of my Laravel sites. The weird part was: I had already added a cron job in cPanel, so I assumed the scheduler was fine. But the tasks still didn’t fire.

Contents
  • How the Laravel scheduler works (simple explanation)
  • Step 1: Verify your cron job is correct (cPanel + Linux examples)
    • Example cron (recommended format)
  • Step 2: Run the scheduler manually (quickest confirmation)
  • Step 3: Check what Laravel thinks is scheduled (optional but helpful)
  • Step 4: Add a “heartbeat” log to prove the scheduler is executing
  • Step 5: If manual works but cron doesn’t — here are the usual fixes
  • If the scheduler runs but your real task still doesn’t
  • Final checklist

If you’re in the same situation and want to check if Laravel scheduler is running, the fastest approach is to test it from two angles:

  • Server side: is cron actually triggering Laravel every minute?
  • App side: when Laravel runs, does it execute anything and write logs?

How the Laravel scheduler works (simple explanation)

Laravel’s scheduler does not “run by itself”. Your server needs a cron job that runs once per minute. That cron triggers Laravel, and Laravel checks which scheduled tasks are due at that moment.

So if scheduled tasks aren’t firing, it’s almost always one of these:

  • The cron job isn’t running (or is running under the wrong user).
  • The cron runs, but it doesn’t reach your Laravel project (wrong path / wrong PHP binary).
  • Laravel runs, but nothing is due / tasks fail / logs aren’t being written.

Step 1: Verify your cron job is correct (cPanel + Linux examples)

The correct idea is: run php artisan schedule:run every minute from the project directory.

Example cron (recommended format)

* * * * * cd /path/to/your/laravel && php artisan schedule:run >> /dev/null 2>&1

On cPanel/shared hosting, I always switch to full paths (this avoids 90% of “it works in terminal but not in cron” problems). Example:

* * * * * cd /home/USERNAME/public_html/yourapp && /usr/local/bin/php artisan schedule:run >> /dev/null 2>&1

If you don’t know your PHP path, run this inside the same account/user:

which php
php -v

Then use that full PHP path in the cron entry.

Step 2: Run the scheduler manually (quickest confirmation)

This is the fastest way to confirm Laravel can execute your scheduled tasks at all. From your Laravel project root:

php artisan schedule:run

If you want more detail (what ran, what didn’t), run it in verbose mode:

php artisan schedule:run -v

If this manual command triggers your tasks, your Laravel side is mostly fine — the problem is usually cron (wrong path, wrong user, wrong PHP).

Step 3: Check what Laravel thinks is scheduled (optional but helpful)

On newer Laravel versions, you can list scheduled tasks and see the next due time:

php artisan schedule:list

If you don’t have that command on your version, don’t worry — you can still verify execution using logs (next step).

Step 4: Add a “heartbeat” log to prove the scheduler is executing

This is the method that finally removed my confusion. I added a temporary scheduled task that logs a line every minute. If the log appears, I know the scheduler is running — and if it doesn’t, the cron setup is wrong.

Open your scheduler file (commonly app/Console/Kernel.php) and add this inside the schedule() method:

protected function schedule(\Illuminate\Console\Scheduling\Schedule $schedule)
{
    $schedule->call(function () {
        \Log::info('Scheduler heartbeat: ' . now());
    })->everyMinute();
}

Now wait 1–2 minutes and check the log file:

tail -n 50 storage/logs/laravel.log

If you see “Scheduler heartbeat”, your scheduler is running correctly.

Important: Remove this heartbeat after testing. It’s only meant for debugging.

Laravel scheduler checklist: cron every minute → schedule:run → test log → laravel.log → fix path/PHP

Step 5: If manual works but cron doesn’t — here are the usual fixes

  • Wrong directory: cron must cd into your Laravel project before running Artisan.
  • Wrong PHP version: cPanel often has multiple PHP binaries. Use the correct full path.
  • Wrong user: cron must run as the same user that owns the project files.
  • Permissions: Laravel must be able to write to storage/ and bootstrap/cache.
  • Environment issues: if your cron uses a different .env context, it may fail silently.

If the scheduler runs but your real task still doesn’t

Once you’ve confirmed the scheduler itself is firing (heartbeat logs appear), then the issue is inside the task:

  • If the task queues jobs, make sure the queue worker is running.
  • Check storage/logs/laravel.log for exceptions.
  • Confirm the task schedule matches your timezone expectations.

Final checklist

  • ✅ Cron runs every minute
  • ✅ Manual php artisan schedule:run works
  • ✅ Heartbeat log appears in laravel.log
  • ✅ Real tasks run (or logs show why they fail)

That’s the exact process I use now whenever a Laravel scheduled task “mysteriously stops”. It quickly tells you whether the problem is cron or the application logic — and saves a lot of guessing.

TAGGED:ArtisancPanelCron JobDebuggingLaravelLinuxphpSchedulervps

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
[mc4wp_form]
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Copy Link Print
Previous Article Fix 409 Conflict error in Laravel (cookies, cache, WAF) How I Fixed the 409 Conflict Error in Laravel (Cookie / Browser / WAF Fix)
Next Article WooCommerce homepage filter to hide out of stock products Hide Out of Stock Products from Homepage in WooCommerce (Keep Them Visible Elsewhere)
Leave a Comment

Leave a Reply Cancel reply

You must be logged in to post a comment.

FacebookLike
XFollow
PinterestPin
InstagramFollow
Most Popular
Display PHP errors — ini_set + php.ini configuration
How to Display PHP Errors
May 10, 2026
PHP convert string to uppercase — strtoupper and mb_strtoupper
How to Convert a String to Uppercase in PHP
May 10, 2026
PHP string to float conversion with cast, regex cleanup, NumberFormatter
How to Convert a String to Float in PHP
May 10, 2026
PHP merge arrays without duplicates — union operator and array_unique
How to Combine Two Arrays Without Duplicates in PHP
May 10, 2026
PHP delete array element — unset, array_splice, array_filter, array_search
How to Delete an Element from a PHP Array
May 10, 2026

You Might Also Like

MySQL extract digits from string — REGEXP_REPLACE negation class
Web Development

How to Extract Only the Digits from a String in MySQL

6 Min Read
Laravel Vite combine CSS — @import chain bundles vendor and app stylesheets
Web Development

How to Compile Multiple CSS into One CSS with Laravel + Vite

7 Min Read
Configure Nginx for WordPress in aaPanel (fix 404 permalinks)
Server Management

Configure Nginx for WordPress in aaPanel (Fix Permalink 404 Errors)

5 Min Read
Automatic logout timeout for command line in Ubuntu (TMOUT 300s)
Server Management

Automatic Logout Timeout for Command Line in Ubuntu (TMOUT 300s)

5 Min Read
How7o

We provide tips, tricks, and advice for improving websites and doing better search.

Tools

  • Age Calculator
  • Word Counter
  • Image Upscaler
  • Password Generator
  • QR Code Generator
  • See all tools→

Pranks

  • Fake Blue Screen Prank
  • Hacker Typer
  • Fake iMessage Generator
  • Windows XP Crash Prank
  • Windows 11 Update Prank
  • See all prank screens →

Company

  • About Us
  • Blog
  • Contact
  • Privacy Policy
  • Terms of Service
  • Sitemap
© 2024–2026 How7o. All rights reserved.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?