How7o
  • Home
  • Tools
  • Prank Screens
  • 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
  • Home
  • Tools
  • Prank Screens
  • Contact
  • Blog
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

You must be logged in to post a comment.

FacebookLike
XFollow
PinterestPin
InstagramFollow

Subscribe Now

Subscribe to our newsletter to get our newest articles instantly!
Most Popular
Step-by-step guide to upgrading the Linux kernel in CentOS 7 using ELRepo
How to Upgrade the Linux Kernel in CentOS 7
April 16, 2026
Install Node.js on Ubuntu — terminal with NodeSource setup_22.x curl command and Node.js hexagon icon
How to Install Node.js on Ubuntu (22.04 & 24.04): Step-by-Step
April 16, 2026
Configure WordPress multisite with subdirectories on Nginx — nginx gear + wordpress tree with subsite branches
How to Configure WordPress Multisite with Subdirectories on Nginx
April 16, 2026
Install Laravel on Ubuntu — terminal with composer create-project command and Laravel red-pillar icon
How to Install Laravel on Ubuntu: Step-by-Step Guide
April 16, 2026
Install PHP on Ubuntu — terminal with apt install php command and stylized elephant icon
How to Install PHP on Ubuntu (22.04 & 24.04): Step-by-Step Guide
April 16, 2026

You Might Also Like

Set a variable in Laravel Blade using the @php directive
Web Development

How to Set a Variable in Laravel Blade Templates (With Examples)

6 Min Read
How to temporarily disable Imunify360 service for testing (cPanel/WHM)
Server Management

How to Temporarily Disable Imunify360 Service (Safe Testing + Fix 503)

5 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
How I Fixed Composer Dependency Errors
Web Development

How I Fixed Composer Dependency Errors Using the –ignore-platform-reqs Flag (Step-by-Step Guide)

7 Min Read
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?