CronNudge

Published October 21, 2026

WP-Cron Not Running? Why Scheduled Events Get Missed

WP-Cron is the scheduler inside WordPress. It is a check at the end of a request, then a loopback to wp-cron.php. Nothing in core sits in the background waiting for the clock. A scheduled post that still says Missed schedule, or a plugin hook whose next_run_relative column says now and never moves, is that loopback failing to finish the event.

A user crontab that never starts is crontab not running. The heartbeat that notices this silence is how to monitor cron jobs.

How WP-Cron decides to run

Events live in the cron option, one array per site. Event keys are Unix timestamps. wp-settings.php calls date_default_timezone_set( 'UTC' ) while WordPress loads, and wp_schedule_event() stores that timestamp as UTC. The site timezone under Settings → General changes how the admin prints a time. It does not change the stored key.

wp_schedule_event( $timestamp, $recurrence, $hook, $args ) adds a recurring event. wp_schedule_single_event() adds one that does not recur. wp_next_scheduled( $hook, $args ) returns the next UTC timestamp for that hook and those arguments, or false. The arguments are part of the identity. A different array is a different event, and the cron option grows a second row.

Core's schedules, from wp_get_schedules(), are:

  • hourly, interval HOUR_IN_SECONDS (3600), display "Once Hourly"
  • twicedaily, 12 hours (43200), "Twice Daily"
  • daily, DAY_IN_SECONDS (86400), "Once Daily"
  • weekly, WEEK_IN_SECONDS (604800), "Once Weekly", added in WordPress 5.4

The cron_schedules filter can add names. A recurrence absent from wp_get_schedules() makes wp_schedule_event() return false.

init calls wp_cron(), which registers _wp_cron() on the shutdown action. Since WordPress 6.9 that is the normal path. ALTERNATE_WP_CRON still registers it on wp_loaded instead. _wp_cron() returns immediately when the request URI contains /wp-cron.php, or when DISABLE_WP_CRON is true. Otherwise it loads due jobs with wp_get_ready_cron_jobs() (timestamps at or before the current microtime) and calls spawn_cron() once.

spawn_cron() sends the loopback. It reads the doing_cron transient. A value more than 10 minutes in the future is ignored. If the stored value plus WP_CRON_LOCK_TIMEOUT is still ahead of now, it returns without sending. The default of that constant is MINUTE_IN_SECONDS (60), from wp_functionality_constants(). The comment in core calls this "more than once every 60 sec." A run that reaches the end of wp-cron.php and still holds the lock deletes the transient, so the next request can spawn again. A run that dies leaves the timestamp in place, and the next spawn waits until that timestamp is 60 seconds old.

The loopback is wp_remote_post() to wp-cron.php?doing_wp_cron=<lock>. The request arguments are timeout 0.01, blocking false, and sslverify set to the https_local_ssl_verify filter, whose default for this call is false. The same microtime string is stored in doing_cron. wp-cron.php runs the hooks only when the transient still equals that string.

Inside wp-cron.php the order for each due event is: reschedule it if it has a schedule, unschedule the current timestamp, then do_action_ref_array() the hook. After each hook it re-reads the lock. If another process replaced doing_cron, it returns and leaves the rest of the queue for a later request. ignore_user_abort( true ) is set at the top of the file. On PHP-FPM it calls fastcgi_finish_request() before WordPress loads, so the HTTP client can finish while the hooks keep running. LiteSpeed has the matching litespeed_finish_request() call.

A post scheduled for later is the event publish_future_post. The posts list prints Missed schedule when post_status is future and time() - get_post_timestamp() is greater than 0. The status stays future until check_and_publish_future_post() runs. If that callback fires early, it schedules the single event again. If the timestamp is due, it publishes.

Why an event is missed

Work down this list. Each item is a different check.

  1. No request executed WordPress PHP, so shutdown never ran _wp_cron().
  2. DISABLE_WP_CRON is set and nothing else calls wp-cron.php or WP-CLI.
  3. The loopback request did not succeed.
  4. A hook died, or held the request until PHP killed it, before later hooks ran.
  5. The doing_cron lock is still inside the 60 second window.
  6. A plugin calls wp_schedule_event() on every load.
  7. This is multisite, and the site you are looking at is not the site whose option you read.
  8. The host already runs cron for you, and a second runner is what you are debugging.

No traffic, or a page that never runs PHP

The plugin handbook states the limit directly: schedule a task for 2:00 and the next page load is 5:00, and the task runs at 5:00. Due events wait for a request that boots WordPress.

A full-page cache or a CDN that serves HTML without executing PHP never reaches shutdown. Logged-in admin screens and any URL you have excluded from the cache still boot WordPress and can still spawn. A quiet site plus a cache in front of every anonymous URL is the usual pair.

DISABLE_WP_CRON and no replacement

define( 'DISABLE_WP_CRON', true ); in wp-config.php makes _wp_cron() return before spawn_cron(). Page loads stop starting cron. The constant does not stop a direct request to wp-cron.php. The file header says defining the constant and calling the file directly are separate, and the direct call does not depend on the constant. Hosts and old hardening guides set the constant and leave the replacement out. wp cron test then errors with The DISABLE_WP_CRON constant is set to true. WP-Cron spawning is disabled.

Search wp-config.php for the constant before you add another one.

The loopback never arrives

spawn_cron() calls the site's own wp-cron.php over HTTP. That fails when the server cannot open a connection to its own hostname, when a firewall drops it, or when the URL requires HTTP authentication. The spawn request does not copy the visitor's basic-auth user and password. A staging site that asks for a password on every URL rejects the loopback.

sslverify for this request defaults to false, through https_local_ssl_verify. A self-signed certificate stops the spawn only if that filter is set to verify. DNS and the firewall are the checks that match the default.

Tools → Site Health runs two related tests. Loopback requests posts to wp-cron.php with a 10 second timeout. A transport error is critical. Any result other than good, including an HTTP status other than 200, uses the label "Your site could not complete a loopback request". A non-200 status is recommended, not critical. The test posts a body on purpose. wp-cron.php exits immediately when $_POST is non-empty, so the test does not run hooks. A passing loopback test means the server could POST to itself. It does not mean your events ran. Scheduled events reads the cron option. With the constant unset, an event overdue by more than 5 minutes is "A scheduled event has failed", and an event that is overdue by 5 minutes or less is "A scheduled event is late". With DISABLE_WP_CRON set, failed means overdue by more than 1 hour, and late means overdue by more than 15 minutes up through 1 hour.

define( 'ALTERNATE_WP_CRON', true ); is the fallback in wp-config.php for a broken loopback. On a normal GET that is not an AJAX or XML-RPC request, spawn_cron() redirects the browser to the same URL with doing_wp_cron added, flushes that redirect, and then runs wp-cron.php in the request it just answered. The wp-config handbook says this method has certain risks, since it depends on a non-native WordPress service. wp cron test warns The ALTERNATE_WP_CRON constant is set to true. WP-Cron spawning is not asynchronous. It still needs a visitor. It does nothing while DISABLE_WP_CRON is true, because _wp_cron() returns before spawn_cron().

A hook dies, or runs past the PHP limit

Hooks in one spawn share one PHP request, in timestamp order. A fatal error, or the host's max_execution_time, stops that request. Core has already rescheduled a recurring event and unscheduled the current timestamp before it calls the hook. A recurring hook that dies comes back at its next interval. A single event, including publish_future_post, is already removed. If the callback dies before wp_publish_post(), the post stays future and nothing in core puts that event back. The Missed schedule label stays until something schedules publish_future_post again or you run the hook yourself.

The lock is deleted only if this process still owns it at the end. A killed request leaves doing_cron set. The next spawn waits out WP_CRON_LOCK_TIMEOUT.

A plugin schedules itself on every load

wp_schedule_event() on init, without wp_next_scheduled() for the same hook and the same arguments, inserts another event on every request. The function reference warns that mismatched arguments are stored as a separate event and the cron option grows. wp cron event list then shows the same hook many times. Two runners, or two copies of one hook, are cron job running twice.

Multisite

get_option( 'cron' ) reads the current site's options table. Each site has its own array. A cron run for the main site does not fire a subsite's hooks. WP-CLI uses the site it loaded, or the site you pass with --url.

The host already runs it

Some managed WordPress hosts turn off the page-load spawn and run wp-cron.php or WP-CLI on their own schedule. What they run, and how often, is in that host's docs. Adding a second system cron on top of theirs is two runners for one queue. Confirm the host is idle before you install a replacement.

Inspect the queue and run it by hand

From the directory that contains wp-config.php, as a user who can read it:

wp cron event list
wp cron schedule list
wp cron test
wp cron event run --due-now
wp cron event run publish_future_post

wp cron event list prints hook, next_run_gmt, next_run_relative, and recurrence. next_run_gmt is UTC. next_run is the same instant in the site timezone, and it is there when you ask for it with --fields. next_run_relative is now when the timestamp is due or overdue.

wp cron schedule list prints name, display, and interval for every schedule wp_get_schedules() returns, core's four plus anything the cron_schedules filter added.

wp cron test checks the spawn. It errors when DISABLE_WP_CRON is true, warns when ALTERNATE_WP_CRON is true, and warns when the HTTP spawn does not return 200. Success is WP-Cron spawning is working as expected.

wp cron event run --due-now runs events that are already due. It honors doing_cron: if that transient is a timestamp inside the lock timeout, it prints A cron event run is already in progress; skipping. and returns without calling WP_CLI::error. The command then exits 0. With nothing due it still exits 0 and prints Executed a total of 0 cron events.

wp cron event run <hook> runs every stored event for that hook, including one whose timestamp is still in the future. List first. --all runs every stored event, due or not. Leave --all off a timer. --exclude=<hooks> is a comma-separated list of hooks to skip. --network, which would walk every site in one command, is marked in the command docs as not part of a stable WP-CLI release yet.

--quiet is a global WP-CLI flag. It suppresses informational messages, which is what keeps a healthy run out of cron's mail.

WP Crontrol is a plugin that lists and runs events in wp-admin. The commands above do not need it.

Replace the loopback with a system cron

This is the fix when the site is quiet, cached, or the loopback is blocked. Define the constant, then run due events from a real cron. The handbook's Linux example is wget against wp-cron.php on the interval you choose. Use WP-CLI when the wp binary can load this install. It runs the hooks in the CLI process and does not depend on HTTP back to the site.

In wp-config.php, above the "That's all, stop editing" line:

define( 'DISABLE_WP_CRON', true );

Run the crontab as the user the PHP workers use, the owner of the WordPress files. On Debian and Ubuntu that user is often www-data. Root's crontab is a different command, a different home, and a different set of file permissions. Edit that user's crontab with crontab -e while logged in as them, or sudo crontab -u www-data -e when www-data is actually the PHP user. On cPanel the account user adds that command in Cron Jobs, and the panel-specific paths are in cPanel cron job not running.

Cron's PATH is short. wp installed in /usr/local/bin is invisible until you call it by its absolute path. command -v wp, command -v flock, and command -v curl print the paths to put in the line. How cron builds that environment is cron job environment variables.

Every five minutes, one install, WP-CLI:

*/5 * * * * cd /var/www/example && /usr/bin/flock -n /tmp/example-wp-cron.lock /usr/local/bin/wp cron event run --due-now --quiet && /usr/bin/curl -fsS -m 10 --retry 3 -o /dev/null https://cronnudge.com/ping/<your-check-id>

Replace /var/www/example with the directory that contains wp-config.php. flock -n runs the command only if it can take the lock now. A second start while the first still holds it exits 1, and the && does not ping. One lock file per install, so two sites do not share a lock. The flag and what a leftover lock file means are in prevent overlapping cron jobs.

&& pings only when wp exits 0. A due run that finishes, and a run where nothing was due, both exit 0, so both ping. The in-progress skip also exits 0, so that skip still pings. flock -n is what turns a second overlapping start into a missing ping.

The HTTP form, from the handbook, is a GET with no request body. wget --delete-after discards the saved response. A POST with a body makes wp-cron.php exit before any hook.

*/5 * * * * wget --delete-after https://example.com/wp-cron.php

Leave doing_wp_cron off that URL, or pass it with an empty value. wp-cron.php treats an empty value as an external job: if doing_cron is still inside the lock timeout it returns without running hooks, otherwise it sets a new lock and runs. A non-empty value has to equal the transient. ?doing_wp_cron=1 does not match a lock core just created, and the request returns before the hooks. Spawn puts the real lock value in the query. A hand-written URL should not invent one. HTTP 200 is the normal end of that file, including the early return, so a 200 does not by itself mean a hook ran.

The same GET with curl:

*/5 * * * * curl -fsS -o /dev/null https://example.com/wp-cron.php

Use the site's real URL. Omit a short --max-time on this request. On PHP-FPM the client is released early. Without fastcgi_finish_request(), curl is holding the connection for the whole run, and a short limit only drops the client. ignore_user_abort( true ) lets PHP continue after that drop, but you no longer have the HTTP status.

Multisite, one process per site, stable flags only. wp site list --field=url prints one URL per line. --url selects the site:

*/5 * * * * cd /var/www/example && /usr/bin/flock -n /tmp/example-wp-cron.lock /bin/sh -c '/usr/local/bin/wp site list --field=url | xargs -I % /usr/local/bin/wp cron event run --due-now --url=% --quiet' && /usr/bin/curl -fsS -m 10 --retry 3 -o /dev/null https://cronnudge.com/ping/<your-check-id>

wp site list errors on a single site. Use the single-site line there.

In Docker, put that crontab in a sidecar whose only process is cron in the foreground, with the WordPress files mounted, running as the same user as PHP. A web container that never starts cron does not run this line. Foreground flags and the environment a container cron actually sees are in monitor cron jobs in Docker. On Kubernetes, a CronJob with schedule */5 * * * * can run the same wp command in a pod that mounts those files. How a CronJob reports success is how to monitor Kubernetes CronJobs.

Five minutes is a bound on lateness: an event due at 12:01 runs on the 12:05 start. The handbook's worked Linux line is a daily wget at midnight, and */15 * * * * on that page is a syntax example. A rarer system cron leaves events waiting longer. It does not change each hook's own schedule.

If the crontab line itself never starts, the cron daemon's log is the next read. Where that log is, and where the command's own output goes, is where are cron logs.

Monitor that cron with CronNudge

One check for the system cron that runs WP-Cron. The curl above is the success ping: GET https://cronnudge.com/ping/<your-check-id>. CronNudge accepts GET, POST, and HEAD. A 200 body is ok. -f fails on an HTTP error, -m 10 stops at 10 seconds, --retry 3 retries transport failures, and -o /dev/null drops the body.

Create the check on the same schedule as the crontab, in the crontab's timezone. For the five-minute line that is */5 * * * *. The form's period list starts at 5 minutes, and a cron expression is rejected when its shortest gap is under the plan minimum. Free's minimum is 5 minutes, so */5 * * * * fits Free. Pro's minimum is 1 minute. Paste the expression into the cron tool and read the next runs in that zone.

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. On a five-minute schedule, 1 minute of grace marks the check late one minute after the missed slot. The default 5 minutes of grace waits until the following slot, so a ping from the next successful run can arrive before the deadline and the missed slot never alerts. Use 1 minute unless the wp command itself often runs longer than that. A command that can run for many minutes needs 15 minutes or 1 hour from the form, or a longer value through the API.

/start is optional, for a hook you also want timed. 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 single hook can ping from its own callback, after the work. This is a second check, with its own schedule, for a hook whose silence matters on its own. wp_remote_get() takes timeout in seconds, default 5, and blocking, default true. blocking false returns no response body. Core's own note on the spawn request is that timeout and blocking are not always honored, and a timeout of 0.01 can take about a second. Put the call after the work, and expect it to cost about that long:

function my_plugin_daily() {
    my_plugin_do_the_work();
    wp_remote_get(
        'https://cronnudge.com/ping/<your-check-id>',
        array(
            'timeout'  => 5,
            'blocking' => false,
        )
    );
}

The URL here is a literal. A URL that comes from user input should go through wp_safe_remote_get() instead.

What the ping means, and what it does not: CronNudge only knows about pings it receives. It cannot read the cron option, and it cannot tell which hooks ran. A success ping after wp cron event run --due-now means that command exited 0, including a run where zero events were due. A hook that exited early is invisible to this check unless that hook sends its own ping. 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 numbers are on pricing.

FAQ

Why is WP-Cron not running? WordPress only spawns it from a request that executes PHP, and only if DISABLE_WP_CRON is not set. A quiet site, a full-page cache, a blocked loopback, or the constant with no system cron in its place all leave due events sitting in the cron option. wp cron event list shows hooks whose next_run_relative is now. wp cron test reports the spawn.

What does Missed schedule mean? The post is still future, and its timestamp is already in the past. The posts list prints Missed schedule for that pair. Publishing waits on the publish_future_post event. If that single event was unscheduled and the callback died before it published, the label stays until the event is scheduled again or you run the hook.

Should I disable WP-Cron? Yes, once a system cron is actually calling wp-cron.php or wp cron event run --due-now. The constant only stops the page-load spawn. It does not run events by itself, and it does not stop a direct request to wp-cron.php. ALTERNATE_WP_CRON is a redirect fallback for a broken loopback, and it still needs a visitor.

How do I run WP-Cron from a real cron job? Set DISABLE_WP_CRON to true. Every five minutes, as the PHP user, from the WordPress directory: wp cron event run --due-now --quiet. Or GET wp-cron.php with wget --delete-after, with no doing_wp_cron value. On multisite, loop wp site list --field=url and pass each URL as --url.

How often should the system cron run? As often as you can tolerate an event waiting. Every five minutes caps that wait at five minutes and matches a Free CronNudge check. Every fifteen minutes leaves a longer wait and also fits Free. The handbook's worked Linux line is a daily wget at midnight. The hook's own schedule (hourly, daily, weekly) stays what wp_schedule_event stored.

Does WP-Cron run without visitors? The page-load spawn does not. No PHP request means no spawn. A system cron that calls wp-cron.php or WP-CLI runs it with no visitors. ALTERNATE_WP_CRON still runs only when a normal GET reaches WordPress.


Turn off the loopback once a real cron is running the queue, and ping when that command finishes. Create the check, or read */5 * * * * on the cron tool.