Published October 21, 2026
Laravel Scheduler Not Running? Why schedule:run Stops
Laravel's scheduler is not a daemon. Something has to run php artisan schedule:run every minute, or php artisan schedule:work has to stay running in the foreground. "Not running" is one of four things. Nothing invokes schedule:run. schedule:run runs and finds no due task. A task is due and then skipped. Or the task runs and fails.
The cron line that invokes schedule:run is an ordinary crontab line: crontab not running. The short copy-paste for a ping is the Laravel scheduler guide.
How the scheduler decides
schedule:run loads the tasks the application registered, looks at the current minute, and starts each task whose cron expression is due. It does not stay running between minutes unless a sub-minute task is defined.
Where the tasks are written depends on the Laravel version:
- Laravel 11 and 12 define them in
routes/console.phpwith theSchedulefacade, or inbootstrap/app.phpwithwithSchedule(). - Laravel 10 and earlier define them in
schedule()onapp/Console/Kernel.php, which receives aScheduleinstance.
php artisan schedule:list prints the tasks that process registered, with the next time each one is due. An empty list means this process loaded no tasks.
Each task is a cron expression. everyMinute(), hourly(), dailyAt('03:00'), and cron('* * * * *') are the usual ones. The server cron entry is what calls schedule:run once a minute. The expression on the task is what decides whether that call does any work.
Sub-minute methods (everySecond(), everyTwoSeconds(), everyFiveSeconds(), everyTenSeconds(), everyFifteenSeconds(), everyTwentySeconds(), everyThirtySeconds()) exist in Laravel 10.15 and later, including 11 and 12. When any task uses one, schedule:run keeps running until the end of that minute so it can start the task again. Without a sub-minute task, schedule:run exits after it has started whatever is due. php artisan schedule:interrupt asks an in-progress sub-minute schedule:run to stop, which is the deploy hook for that long-lived minute.
The clock for a task is its own timezone when you chain timezone(). Otherwise the schedule uses schedule_timezone from config/app.php when that value is set, and timezone from the same file when it is not. The application skeleton sets timezone to UTC. Laravel 10 reads those same config keys inside Kernel::scheduleTimezone(), which you can override. A dailyAt('03:00') with timezone('America/New_York') is 03:00 in New York. The crontab that calls schedule:run is every minute, so the server's zone does not pick the hour. The task's zone does.
Laravel's own warning on timezone scheduling: a daylight-saving change can run a task twice or not at all. The skipped hour and the repeated hour are cron jobs and daylight saving time.
Why schedule:run does nothing
Work down this list. Each item is a different check.
The cron line is missing or wrong
The scheduler does nothing until cron calls it. The line in the Laravel scheduling docs is:
* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1
* * * * * is every minute. cd has to land in the directory that contains artisan. php has to be a binary cron can execute. >> /dev/null 2>&1 throws the command's output away, which is why a failing run looks like a run that never happened.
While you are debugging, append to a file instead, and call PHP by its absolute path:
* * * * * cd /var/www/app && /usr/bin/php artisan schedule:run >> /var/www/app/storage/logs/schedule.log 2>&1
/usr/bin/php is an example. On the machine, which php in the shell you use by hand prints the binary that shell finds. Cron starts with a short PATH, often /usr/bin:/bin, so a php that works when you type it can be missing in the job. The same class of miss is cron job environment variables.
The line has to be in the crontab of the user who should run it. crontab -l is your user. sudo crontab -l -u www-data is that user's crontab. A line you added with sudo crontab -e is root's, and root's view of the app can create root-owned files under storage/ and bootstrap/cache. Run the line as the same user that serves the app.
grep CRON /var/log/syslog and journalctl -u cron (Debian and Ubuntu) or journalctl -u crond (RHEL and Fedora) show whether cron started the command. A CMD line means cron started it. No line means cron never saw a due entry for that user. The distro split is where cron logs are, and a daemon that is not running at all is crontab not running.
schedule:work stopped with the terminal
schedule:work is the local-development command. It runs in the foreground and invokes the scheduler every minute until you terminate it. Closing the terminal stops it. A container whose main process is schedule:work stops the scheduler when that process stops.
Production is the cron line above, or a process supervisor that keeps a real process up. In a container, cron has to be a supervised process, not a side effect of a shell that already exited. That setup is monitor cron jobs in Docker. A cluster that should start schedule:run on a timer is a Kubernetes CronJob.
config:cache made env() miss .env
php artisan config:cache is part of a normal production deploy. Once configuration is cached, the application does not load .env for requests or Artisan commands. env() then returns only variables that are set in the process environment. A name that exists only in .env is not one of those, so env('CRONNUDGE_URL') inside a scheduled closure is null, and the HTTP call goes nowhere.
Call env() from files in config/. Read the value everywhere else with config():
'cronnudge' => [
'url' => env('CRONNUDGE_URL'),
],
That entry belongs in config/services.php. The task then uses config('services.cronnudge.url'). php artisan config:clear drops the cache when you need .env loaded again. Do not run config:cache on a machine where you are still editing config.
The schedule definition is not loaded
schedule:list is the check. No scheduled tasks have been defined. means the application that ran the command registered nothing.
On Laravel 11 and 12 the tasks are in routes/console.php or in the withSchedule() callback in bootstrap/app.php. On Laravel 10 they are in schedule() on app/Console/Kernel.php. A schedule() method left in a Kernel class that the running application does not boot is not the list schedule:run walks. Deploy the file you edited, then run schedule:list as the same user and from the same directory as cron.
Maintenance mode, environments, when, and skip
php artisan down puts the application in maintenance mode. Scheduled tasks do not run while that mode is on, unless the task calls evenInMaintenanceMode(). A due task that maintenance mode blocks is not due. schedule:run then prints No scheduled commands are ready to run. when nothing else started.
environments() limits a task to the named APP_ENV values, for example environments(['production']). A task limited to production does not run when APP_ENV is local or staging. That check happens before the task is due, so the command output looks the same as an idle minute.
when() runs the task only when the callback returns true. Every chained when() has to return true. skip() is the inverse: a callback that returns true skips the task. A skipped task was due, and schedule:run still prints No scheduled commands are ready to run. if nothing else started. The framework dispatches ScheduledTaskSkipped. It does not print a line for that skip.
withoutOverlapping and onOneServer
withoutOverlapping() keeps a second copy of the same task from starting while the first still holds a cache lock. The lock expires after 24 hours unless you pass a shorter time in minutes. withoutOverlapping(10) expires after 10 minutes. The lock lives in the application cache.
The lock is released when the task finishes. A process that is killed first leaves the lock in place. The next minutes look idle: the task is due, the lock says it is still running, and schedule:run skips it. php artisan schedule:list marks that row with Has Mutex while the lock exists. php artisan schedule:clear-cache deletes the mutex for each defined task that still holds one. It prints Deleting mutex for [...], or No mutex files were found. when there is nothing to delete. The command clears those scheduler mutexes. It does not edit the crontab.
onOneServer() is the other lock. The first server to take it runs the task. The others skip it for that minute. The scheduling docs require the default cache driver to be database, memcached, dynamodb, or redis, and every server has to talk to that same cache. file and array are not in that list. A scheduled closure needs name() before onOneServer(). A command is already named. Two servers that both run the same crontab without onOneServer() run the task twice, which is cron job running twice.
runInBackground() applies only to command() and exec(). It starts the command and lets schedule:run continue, so a long task does not push the next task in the same minute late. When that command exits, the framework runs the after hooks, including success and failure pings, with the command's exit code. A kill before that exit leaves a withoutOverlapping() lock until it expires or you clear it. A task that starts and never finishes is cron job stuck or hanging. Refusing the second start on purpose is prevent overlapping cron jobs.
The job was only queued
Schedule::job() schedules a job. A job that implements ShouldQueue is dispatched to the queue named on the job, or to the queue and connection you pass as the second and third arguments. It does not run the job body. php artisan queue:work is the process that runs it. With no worker, the schedule "ran", the job sits in the queue, and the work never happens.
A job that does not implement ShouldQueue runs immediately inside schedule:run. A command that itself calls dispatch() on a queued job is the same split: the command can exit 0 after the dispatch, and the worker is what finishes the work. Put the success ping in the job's handle(), after the work, when the thing you care about is the job rather than the dispatch.
The command fails
A non-zero exit code is a failed Artisan or system command. schedule:run reports that failure. With the application skeleton's default log channel, that report is written to storage/logs/laravel.log.
onFailure() runs a callback when that exit code is not 0. emailOutputOnFailure() emails the output, and it needs the application's mail configuration. sendOutputTo() and appendOutputTo() write the output to a file. Those four methods, and emailOutputTo(), apply to command() and exec() only. A closure's exception is the closure failing, and it is still reported to the log.
The cron redirect in the debugging line above is the other copy of the output. /dev/null is why that copy does not exist.
Inspect it
Run these from the project directory, as the user cron uses.
php artisan schedule:list
php artisan schedule:list -v
php artisan schedule:run
php artisan schedule:test
crontab -l
sudo crontab -l -u www-data
which php
schedule:list prints each expression, the command, and Next Due:. The due time is relative. -v prints that moment as an absolute timestamp with a numeric offset (Y-m-d H:i:s P) and, when the description is longer than one character, that description on the next line. --timezone= displays the due time in that zone. The default display zone is config('app.timezone'). The expression itself is still evaluated in the task's zone. Has Mutex on a row means the withoutOverlapping() lock is held. No scheduled tasks have been defined. means the list is empty.
schedule:run prints a timestamp and Running [command] for each task it starts, and in background when that task is a background command. When it starts nothing, it prints No scheduled commands are ready to run. That one sentence covers an idle minute, a maintenance hold, an environments() miss, a when() or skip() rejection, and a withoutOverlapping() lock. It does not say which. Laravel 12 adds --whisper to hide that sentence. Laravel 10 and 11 always print it. -v does not change these lines.
When onOneServer() loses the lock, Laravel 12 prints Skipping [...] because the command already ran on another server. Laravel 10 and 11 print Skipping [...], as command already run on another server.
schedule:test runs one defined task now, in the foreground, whether or not its cron expression is due. It prompts Which command would you like to run?, or you pass --name= with the command string. No matching scheduled command found. means --name did not match exactly one command. It does not read the crontab, and it does not apply environments(), when(), skip(), or maintenance mode. It does still honor a withoutOverlapping() lock. A success here means the task body can run. It does not mean cron will call schedule:run.
which php is the interactive shell's binary. The crontab needs that path written out when cron's PATH would not find it. A CMD line in the cron log means the line started. The schedule log, if you redirected to a file, is the command's own output.
A schedule that runs
Laravel 11 and 12, in routes/console.php. The task is 03:00 in New York, with an overlap lock and a single-server lock. The crontab uses an absolute PHP binary and a log file.
use Illuminate\Support\Facades\Schedule;
Schedule::command('backup:run')
->dailyAt('03:00')
->timezone('America/New_York')
->withoutOverlapping()
->onOneServer();
* * * * * cd /var/www/app && /usr/bin/php artisan schedule:run >> /var/www/app/storage/logs/schedule.log 2>&1
onOneServer() needs the shared cache from the section above. withoutOverlapping() without an argument holds its lock for 24 hours after a crash. Replace /usr/bin/php with the output of which php, and /var/www/app with the directory that contains artisan. The user who owns this crontab has to be able to write storage/logs/. On cPanel, /usr/bin/php is the CGI binary and the CLI path is in cPanel cron job not running.
Laravel 10 puts the same call in app/Console/Kernel.php:
protected function schedule(Schedule $schedule): void
{
$schedule->command('backup:run')
->dailyAt('03:00')
->timezone('America/New_York')
->withoutOverlapping()
->onOneServer();
}
Run php artisan schedule:list and confirm backup:run with a next due time. Run php artisan schedule:test --name='backup:run' and confirm the command itself. Then confirm the cron log shows a CMD every minute.
Monitor it with CronNudge
Use two checks. One is the scheduler. A task every five minutes that only pings tells you schedule:run is still being invoked. The other is each important task, and it pings only after that task's work succeeds. A green scheduler check with a late backup check means cron is alive and the backup did not finish. A late scheduler check means the minute loop stopped.
CronNudge accepts GET, POST, and HEAD. A stored ping answers ok.
Laravel's ping helpers send that GET through Guzzle. pingBefore() runs before the task. thenPing() runs after the task, including when the command exits non-zero. pingOnSuccess() runs after the task only when the exit code is 0. pingOnFailure() runs when the exit code is not 0. Laravel 10's scheduling docs say these methods need the Guzzle HTTP library, which a new application already has. The same client is what later versions call. A connection error is reported and swallowed, so a failed ping does not by itself fail the command. The check is what notices the missing request.
Map them like this. pingBefore hits /start. pingOnSuccess hits the bare URL. pingOnFailure hits /fail. Leave thenPing off the success URL, because a non-zero exit would still be reported as success.
Read the URL from config. Both checks get a key in config/services.php. config:cache would turn env() inside a task into a null URL.
'cronnudge' => [
'backup_url' => env('CRONNUDGE_BACKUP_URL'),
'scheduler_url' => env('CRONNUDGE_SCHEDULER_URL'),
],
use Illuminate\Support\Facades\Schedule;
$url = config('services.cronnudge.backup_url');
Schedule::command('backup:run')
->dailyAt('03:00')
->timezone('America/New_York')
->withoutOverlapping()
->onOneServer()
->pingBefore($url.'/start')
->pingOnSuccess($url)
->pingOnFailure($url.'/fail');
The same split with the HTTP client, for a closure whose body can throw. The success request is the bare URL. /fail runs from the catch, and the exception is rethrown so the task stays failed.
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Facades\Schedule;
Schedule::call(function () {
$url = config('services.cronnudge.backup_url');
Http::timeout(10)->get($url.'/start');
try {
runNightlyBackup();
Http::timeout(10)->get($url);
} catch (\Throwable $error) {
Http::timeout(10)->get($url.'/fail');
throw $error;
}
})->name('nightly-backup')->dailyAt('03:00')->timezone('America/New_York');
Http::get throws when the connection fails. It does not throw on an HTTP error status unless you chain throw(). A connection error on the success request is caught by the same catch, which sends /fail and rethrows.
The scheduler check uses scheduler_url from that same array, on a five-minute task. evenInMaintenanceMode() keeps it pinging during php artisan down. Without that method, maintenance mode looks like a dead scheduler.
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Facades\Schedule;
Schedule::call(function () {
Http::timeout(10)->get(config('services.cronnudge.scheduler_url'));
})->name('scheduler-heartbeat')->everyFiveMinutes()->evenInMaintenanceMode();
Create the backup check on 0 3 * * * in America/New_York. Create the scheduler check on */5 * * * *. Paste each expression into the cron tool and read the next runs.
?exit= on the success URL has to be an integer from 0 through 255. 0 stays a success. Any other value in that range is a failure. A missing value, or a value outside that range, is ignored, and the success URL stays a success. /fail is a failure on its own. The helpers above do not send ?exit=. pingOnFailure is the failure path.
Grace is added to the next scheduled time after a success ping. The form offers none, 1 minute, 5 minutes, 15 minutes, and 1 hour. Five minutes is the default. The API accepts any whole number of seconds from 0 through 7 days. A backup that finishes in a few minutes fits the default. A backup that can run most of an hour needs 1 hour, and on a daily schedule the alert is still the same morning. On a check that repeats faster than the grace, a ping from the next slot can arrive before the deadline, and the missed slot never alerts.
The form's period list starts at 5 minutes. A cron expression is rejected when its shortest gap is under the plan minimum. Free's minimum is 5 minutes. */5 * * * * and a daily backup fit Free. An every-minute scheduler heartbeat is * * * * *, and that needs Pro, whose minimum is 1 minute. On Free, use the five-minute heartbeat. The numbers are on pricing.
/start is how you time the run. Ping /start before the work and the bare URL after it, and turn on run tracking. Setting Max runtime turns run tracking on. Max runtime is 1 second through 7 days. Free includes assertions and run tracking on 3 checks. Pro removes that cap. The fields are in assertions, runs, and agents. A second /start while that run is still open is the overlap alert. It fires only with run tracking on. It is separate from Laravel's cache lock.
What the ping means, and what it does not: CronNudge only knows about pings it receives. It cannot see the crontab, the cache lock, or the queue. A success ping means the success request completed. A /fail request, or a ?exit= value other than 0, means the task reported a failure. A scheduler that never starts sends neither, and the check goes late when the deadline passes. A paused check stores the ping and does not alert. A failed ping, or no success ping by the deadline, is a down alert: "No successful ping arrived by the deadline." The next success after that is a recovery: "A successful ping arrived."
Free is 10 checks, a 5-minute minimum interval, email, and one Slack or Discord channel. Pro is $12 a month for 100 checks, a 1-minute minimum, signed webhooks, and the API.
The pattern for any scheduler is how to monitor cron jobs.
FAQ
Why is my Laravel scheduler not running? Nothing is invoking schedule:run, schedule:run finds no due task, a due task is skipped, or the task runs and fails. php artisan schedule:list shows the tasks and the next due time. php artisan schedule:run prints Running [command] or No scheduled commands are ready to run. The cron log shows whether the minute line started.
Why does schedule:run work when I type it but not from cron? The shell you type in has a different PATH, a different user, and a different working directory from cron. which php is the binary to put in the crontab. The line has to cd to the directory that contains artisan, and it has to be in that user's crontab. Output sent to /dev/null hides the error. Append it to a file while you debug.
Should I use schedule:work in production? schedule:work is the local-development command. It runs in the foreground and invokes the scheduler every minute until the process exits. Production is a cron line that runs php artisan schedule:run every minute, or a supervised process that stays up. Closing the terminal or stopping the container stops schedule:work.
Why does withoutOverlapping never run my task again? The previous run still holds the cache lock. The default expiry is 24 hours, and a crashed process does not release it early. php artisan schedule:list shows Has Mutex on that row. php artisan schedule:clear-cache deletes the mutex. withoutOverlapping(10) expires after 10 minutes instead.
Does onOneServer need Redis? Redis is one of the four cache drivers the scheduling docs allow: database, memcached, dynamodb, or redis. Every server that runs schedule:run has to use that same central cache. The file and array drivers are not in the list. A closure also needs a name() before onOneServer().
How do I know the Laravel scheduler stopped? A five-minute task that only pings goes quiet when schedule:run stops being invoked. That check is */5 * * * *, which fits the Free 5-minute minimum. An every-minute heartbeat needs Pro. A separate check per important task tells you the scheduler is up while that task is not. CronNudge only sees the pings. It does not see the crontab, the lock, or the queue.
Run schedule:list, confirm the cron line is in the right user's crontab, and ping when the task exits 0. Create the check on the task's clock, or read 0 3 * * * on the cron tool.