How7o
  • Home
  • Marketing
    MarketingShow More
    The Beginner’s Guide about Facebook Advertising
    6 Min Read
    64 Creative Marketing Ideas to Boost Your Business
    6 Min Read
  • OS
    OSShow More
    How to force quit frozen apps in Ubuntu
    Force Close an App in Ubuntu (xkill, System Monitor, kill -9)
    4 Min Read
    5 Effective Ways to Increase Market Share Online
    6 Min Read
    Tips Debugging with CMS code Optimization Quick
    6 Min Read
  • Features
    FeaturesShow More
    Step by Step Guide to a Technical SEO Audit
    6 Min Read
    10+ Free Tools to Make Your Own Animated GIFs
    6 Min Read
  • Guide
    GuideShow More
    The Ultimate Guide, Easily Make Videos Tutorials
    6 Min Read
    Tips to Keep Your Cloud Storage Safe and Secure
    6 Min Read
  • Contact
  • Blog
Reading: How to Check if Laravel Scheduler Is Running (Cron + Logs)
Share
Subscribe Now
How7oHow7o
Font ResizerAa
  • Marketing
  • OS
  • Features
  • Guide
  • Complaint
  • Advertise
Search
  • Categories
    • Marketing
    • OS
    • Features
    • Guide
    • Lifestyle
    • Wellness
    • Healthy
    • Nutrition
  • More Foxiz
    • Blog Index
    • Complaint
    • Sitemap
    • Advertise
Follow US
Copyright © 2014-2023 Ruby Theme Ltd. All Rights Reserved.
How7o > Blog > 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.
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

Your email address will not be published. Required fields are marked *

FacebookLike
XFollow
PinterestPin
InstagramFollow

Subscribe Now

Subscribe to our newsletter to get our newest articles instantly!
Most Popular
How I Fixed Composer Dependency Errors
How I Fixed Composer Dependency Errors Using the –ignore-platform-reqs Flag (Step-by-Step Guide)
January 12, 2026
Transfer Discourse to a new server
How to Transfer Discourse to a New Server on AlmaLinux (Backup + Restore, Step-by-Step)
January 12, 2026
Installed Discourse on AlmaLinux
How I Installed Discourse on AlmaLinux (Docker Method, Step-by-Step)
January 12, 2026
Installing Docker on AlmaLinux guide
Install Docker on AlmaLinux: Step-by-Step (Docker CE + Compose)
January 12, 2026
Change welcome message on Ubuntu VPS server (MOTD + SSH banner)
Change Welcome Message on Ubuntu VPS (MOTD + SSH Banner)
January 12, 2026

You Might Also Like

Laravel Blade Time Format (HH:MM)
Web Development

How to Show Only Hours and Minutes in Laravel Blade (HH:MM)

3 Min Read
Send a simple email in Laravel using Mail::raw and SMTP
Web Development

How to Send a Simple Email in Laravel (Fast SMTP + Mail::raw)

4 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
Update Ubuntu to the latest kernel version
Server Management

Update Ubuntu to the Latest Kernel Version (Safe Server Steps)

5 Min Read

Always Stay Up to Date

Subscribe to our newsletter to get our newest articles instantly!
How7o

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

Latest News

  • SEO Audit Tool
  • Client ReferralsNew
  • Execution of SEO
  • Reporting Tool

Resouce

  • Google Search Console
  • Google Keyword Planner
  • Google OptimiseHot
  • SEO Spider

Get the Top 10 in Search!

Looking for a trustworthy service to optimize the company website?
Request a Quote
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?