Know When a Scheduled Task Did Not Run: Monitoring WP-Cron and Action Scheduler Failures
WordPress logs nothing when a cron job fails. Tested checks for overdue WP-Cron events, failed Action Scheduler actions, missed posts and alerts.

Your scheduled tasks fail without telling anyone. WordPress keeps no log of cron runs, a failed one-off WP-Cron event is deleted before it even runs, and Action Scheduler only shows a warning to admins who happen to open wp-admin. The fix is three layers: run cron from the server, ping a monitor with the exit code of wp cron event run --due-now, and query Action Scheduler for failed and past-due actions on a timer. This guide has all three, with commands checked against the WordPress core source and the Action Scheduler source on 15 November 2026.
The renewal email does not go out, the scheduled post sits at “Missed schedule”, the nightly sync stops, and the first person to notice is a customer. Most uptime checks ask whether the homepage loads, not whether the jobs behind it ran. If WP-Cron is not running at all and you need a first diagnosis, our guide to why debug.log stays empty helps you find the PHP errors a failed task leaves behind. This post is about detection and housekeeping once cron is set up.
Result tables and output below come from our own test site on 17 October 2026 (WordPress 7.1.3, PHP 8.3.35, MariaDB 11, WP-CLI 2.12.0, Action Scheduler 4.2.0). Commands, constants, hooks and table names were re-checked against current source on 15 November 2026. WP-CLI 2.12.0 and Action Scheduler 4.2.0 were still the latest releases that day.
The short version
- Run WP-Cron from the server. Set
DISABLE_WP_CRONand runwp cron event run --due-nowfrom system cron every five minutes. It exits 1 when a task fatals. - Ping a monitor with that exit code. Healthchecks.io accepts the status as the last part of the ping URL, so success and failure arrive in one request.
- Do not trust
wp cron event listfor lateness. It shows an event two hours late as “now”. Compare thetimefield with the clock. - Query Action Scheduler instead of reading its exit code.
wp action-scheduler runexits 0 even when actions fail. - Check for missed scheduled posts. Any post still in
futurestatus with a past GMT date. - Set retention on purpose. Completed and cancelled actions are purged after 31 days, failed ones after three months. Know both numbers before the tables grow.
Why do WordPress cron jobs fail without any warning?
Because WP-Cron was built to be cheap, not observable. In core, wp-cron.php reschedules a recurring event or unschedules a one-off event first, and only then calls do_action_ref_array( $hook, $args ). That order protects the schedule from a crash. It also means a task that dies leaves nothing behind to inspect. We broke three test hooks on purpose (one that works, one that throws an exception, one that calls a function that does not exist) and recorded what happened:
Test | What happened |
|---|---|
One-off event that fatals | Removed from the schedule before it ran. It is gone and never retries. |
Recurring event that fatals | Rescheduled for its next run before it ran, so it fails again every interval. |
Uncaught exception in a task | Treated like a fatal error: |
A fatal task queued before a working task | The working task did not run in that pass. One broken job blocks the ones behind it. |
Calling | HTTP 200 and nothing ran: the crashed run never released the cron lock, so WordPress waits out the lock timeout. |
Anything logged by WordPress | Nothing. The only trace was the PHP fatal error in the server error log. |
WordPress does have two actions with error-sounding names, cron_reschedule_event_error and cron_unschedule_event_error. They fire when WordPress fails to save the schedule (the wp_reschedule_event() or wp_unschedule_event() call returned an error), not when your task fails. They will not catch any row in the table above.
Core also changed when cron is triggered. Since WordPress 6.9, the loopback check runs on the shutdown action instead of wp_loaded, unless ALTERNATE_WP_CRON is on. It does not change the basic limit: on a quiet site with no visitors, nothing triggers it.
How do I set up a real server cron for WordPress?
Disable the page-load trigger and call WP-Cron on a fixed timer. The WordPress plugin handbook describes the constant and a wget call to wp-cron.php. We prefer WP-CLI because it skips HTTP, so a firewall, Basic Auth or a Cloudflare challenge cannot get in the way, and it gives you an exit code.
# checked on 15 Nov 2026
wp config set DISABLE_WP_CRON true --raw
# crontab -e (as the user that owns the site files)
*/5 * * * * cd /var/www/html && wp cron event run --due-now --quietThree constants are worth knowing, all read in core:
Constant | What it does | Default |
|---|---|---|
| Stops WordPress spawning cron on page loads. | Not set |
| Runs cron by redirecting the visitor instead of using a loopback request. A workaround for hosts that block loopbacks. Not needed with server cron. | Not set |
| Seconds the | 60 ( |
In our tests, with WP-Cron still enabled, page loads kept taking the cron lock to attempt their own loopback spawn. Our server-side call to wp-cron.php then found the lock held and ran nothing. With DISABLE_WP_CRON set, the server call ran every due task. WP-CLI has the same lock courtesy: in the cron-command source, wp cron event run --due-now prints “A cron event run is already in progress; skipping” and returns without error when the lock is held, so a skipped run still pings success. If you need more than one site on a server, stagger the crontab minutes instead of running them all at :00.
Check the setup with wp cron test. It tries a loopback spawn, and on a site with DISABLE_WP_CRON set it stops with an error saying so, which is expected. On our test site, with the constant off and the site unable to reach its own URL, it failed with a clear message:
Error: WP-Cron spawn failed with error: cURL error 7: Failed to connect to localhost:8097 after 0 ms: Could not connect to serverThat is the classic “WP-Cron does nothing on page loads” cause on hosts that block loopbacks. Our guide on how to disable WP-Cron and use a real cron job has the full setup.
How do I know if WordPress cron jobs are not running?
Compare each event’s due time with the clock. The default event list hides the problem:
$ wp cron event list --fields=hook,next_run_gmt,next_run_relative
hook next_run_gmt next_run_relative
tw_ok_hook 2026-10-17 14:57:15 now
tw_fatal_hook 2026-10-17 14:57:16 nowBoth events were two hours overdue when we ran that. next_run_relative says “now” for anything already due, whether it is one second or one week late. The time field is optional in WP-CLI, so you have to ask for it by name. It is a Unix timestamp:
NOW=$(date +%s)
wp cron event list --fields=hook,time --format=csv | tail -n +2 |
awk -F, -v now="$NOW" -v grace=900 '$2 < now-grace {printf "%s overdue by %d min\n", $1, (now-$2)/60}'tw_ok_hook overdue by 120 min
tw_fatal_hook overdue by 120 minThe 15-minute grace (grace=900) avoids false alarms from events that are a minute or two behind because cron runs every five minutes. One overdue event usually means nothing is running WP-Cron, so this single check catches the most common failure: DISABLE_WP_CRON set with no server cron behind it.
How do I get an alert when scheduled tasks stop?
Use a dead man’s switch. Every cron run pings a URL, and a monitoring service alerts you when pings stop or report failure. Healthchecks.io, Cronitor and similar services work this way. The question is whether your cron command tells you it failed. We checked the exit codes:
Command and situation | Exit code |
|---|---|
| 0 |
| 0 |
| 1 |
| HTTP 500 |
| HTTP 200, nothing ran |
WP-CLI gives an honest exit code. The Healthchecks.io HTTP API accepts it as the last path segment (0 is success, 1 to 255 is failure), so one line covers both outcomes:
# crontab -e
*/5 * * * * cd /var/www/html && wp cron event run --due-now --quiet; curl -fsS -m 10 --retry 3 -o /dev/null "https://hc-ping.com/YOUR-UUID/$?"With a fatal task in the queue, the first run pinged /1 (failure) and the next clean run /0 (success). If cron stops running entirely, no ping arrives and the service alerts on the missing heartbeat. Do not build the heartbeat on curl https://example.com/wp-cron.php: as the table shows, that URL returns 200 whenever it decides not to run, which proves the request reached WordPress and nothing else.
For per-task alerts, hook the failure action Action Scheduler fires. This mu-plugin emails the admin once per action per hour (we ran php -l on it; it uses only core functions plus the documented hook):
<?php
// wp-content/mu-plugins/as-failure-alert.php (checked on 15 Nov 2026)
add_action( 'action_scheduler_failed_execution', function ( $action_id, $e, $context ) {
$key = 'as_fail_alert_' . md5( (string) $action_id );
if ( get_transient( $key ) ) {
return; // one email per action per hour
}
set_transient( $key, 1, HOUR_IN_SECONDS );
wp_mail(
get_option( 'admin_email' ),
'Action Scheduler action failed on ' . wp_parse_url( home_url(), PHP_URL_HOST ),
sprintf( 'Action %d failed (%s): %s', $action_id, $context, $e->getMessage() )
);
}, 10, 3 );In the source this action fires with the action ID, the exception and the run context after the action is marked failed. A second hook, action_scheduler_failed_action, fires when the cleaner marks an action failed because it sat in progress past the timeout (300 seconds by default, filterable with action_scheduler_failure_period). Hook that one too if your tasks can be killed mid-run, because a killed process never reaches the first hook.
How do I find failed Action Scheduler actions?
Action Scheduler handles failure very differently from WP-Cron, and better. We created the same three tasks as actions and ran them:
$ wp action-scheduler run --hooks=tw_fail_hook,tw_ok_hook,tw_fatal_hook
Completed processing action 7 with hook: tw_ok_hook
Error: Error processing action 6: tw_fail_hook: remote API returned 500
Error: Error processing action 8: Call to undefined function tw_function_that_does_not_exist()
$ echo $?
0- It caught both the exception and the fatal error, marked those actions
failed, and carried on with the rest of the queue. - Each failed action keeps its error message in its log.
- The command still exited 0. Never use the exit code of
wp action-scheduler runas your health signal.
The failure record is there to query. wp action-scheduler action list accepts any argument as_get_scheduled_actions() accepts, and wp action-scheduler action logs <id> is a shortcut for the log entries:
$ wp action-scheduler action list --status=failed --fields=id,hook
id hook
6 tw_fail_hook
8 tw_fatal_hook
$ wp action-scheduler action get 6 --field=log_entries
date message
2026-10-17 17:01:03 +0000 action created
2026-10-17 17:01:16 +0000 action started via WP CLI
2026-10-17 17:01:16 +0000 action failed via WP CLI: tw_fail_hook: remote API returned 500In wp-admin the same list is under Tools, Scheduled Actions, with the Failed filter. For monitoring, two counts cover most problems:
# actions that failed among those scheduled in the last day
wp action-scheduler action list --status=failed --date='-1 day' --date_compare='>=' --format=count
# actions still pending more than 30 minutes after they were due
wp action-scheduler action list --status=pending --date='-30 minutes' --date_compare='<=' --format=countWhat does a rising past-due count mean?
The queue is not being processed, usually because WP-Cron is not running. Action Scheduler’s queue runner is itself a WP-Cron event (action_scheduler_run_queue, every minute by default in the source, filterable with action_scheduler_run_schedule). A rising failed count means the queue runs but something inside it is broken. wp action-scheduler status prints the data store, the runner, the version and a count per status with the oldest and newest scheduled date, which is a good one-screen summary when someone says “the queue is stuck”.
Action Scheduler has its own warning, but it is easy to miss. In the source, the past-due notice is shown only to users with manage_options (the check is filterable with action_scheduler_check_pastdue_actions), only on admin pages, and by default only for actions more than a day overdue (action_scheduler_pastdue_actions_seconds, with a minimum count of 1 from action_scheduler_pastdue_actions_min). On a site nobody logs into, nobody sees it.
Why did my scheduled post miss its schedule?
Each scheduled post gets a publish_future_post cron event. If WP-Cron does not run, the post stays in future status with a date in the past. We scheduled a post three minutes ahead with no cron running, and three minutes later it was still future:
NOW=$(date -u "+%Y-%m-%d %H:%M:%S")
wp post list --post_status=future --fields=ID,post_date_gmt,post_title --format=csv | tail -n +2 |
awk -F, -v now="$NOW" '{d=$2; gsub(/"/,"",d)} d < now {print "MISSED:", $0}'MISSED: 5,"2026-10-17 17:06:28","Scheduled launch post"Running wp cron event run --due-now published it straight away. Compare against the GMT date: post_date is in the site’s timezone and gives wrong answers on any site not set to UTC.
One script for all four checks
This script combines the overdue, missed-post, failed and past-due checks and exits 1 if anything needs attention, so a cron job, monitoring agent or CI step can act on it. We ran it against our test site in both states:
#!/usr/bin/env bash
# cron-health.sh - report scheduled-task problems for one WordPress site.
# Usage: cron-health.sh [wp-cli args, e.g. --path=/var/www/html or @alias]
# Exit 0 = healthy, 1 = something needs a look.
WP="${WP_BIN:-wp} $*"
GRACE=${GRACE:-900} # seconds a WP-Cron event may be late
NOW=$(date -u +%s); NOW_SQL=$(date -u "+%Y-%m-%d %H:%M:%S")
problems=0
late=$($WP cron event list --fields=hook,time --format=csv 2>/dev/null | tail -n +2 |
awk -F, -v now="$NOW" -v g="$GRACE" '$2 < now-g {printf " %s late by %d min\n", $1, (now-$2)/60}')
[ -n "$late" ] && { echo "WP-Cron events overdue:"; echo "$late"; problems=1; }
missed=$($WP post list --post_status=future --fields=ID,post_date_gmt --format=csv 2>/dev/null | tail -n +2 |
awk -F, -v now="$NOW_SQL" '{d=$2; gsub(/"/,"",d)} d < now {print " post " $1 " was due " d " UTC"}')
[ -n "$missed" ] && { echo "Scheduled posts missed:"; echo "$missed"; problems=1; }
if $WP action-scheduler version >/dev/null 2>&1; then
failed=$($WP action-scheduler action list --status=failed --date='-1 day' --date_compare='>=' --format=count 2>/dev/null)
pastdue=$($WP action-scheduler action list --status=pending --date='-30 minutes' --date_compare='<=' --format=count 2>/dev/null)
[ "${failed:-0}" -gt 0 ] && { echo "Action Scheduler: $failed failed action(s) scheduled in the last day"; problems=1; }
[ "${pastdue:-0}" -gt 0 ] && { echo "Action Scheduler: $pastdue pending action(s) more than 30 min past due"; problems=1; }
fi
[ $problems -eq 0 ] && echo "OK: no overdue events, missed posts or failed actions"
exit $problemsOutput with problems on the site:
WP-Cron events overdue:
tw_ok_hook late by 40 min
Scheduled posts missed:
post 8 was due 2026-10-17 16:47:30 UTC
Action Scheduler: 3 failed action(s) scheduled in the last day
Action Scheduler: 1 pending action(s) more than 30 min past due
exit=1And after fixing them:
OK: no overdue events, missed posts or failed actions
exit=0The Action Scheduler checks only run when the wp action-scheduler command exists, so the same script works on sites without it. Failed actions stay in the table, so after you have dealt with one, delete it (wp action-scheduler action delete <id>) or the script keeps reporting it until its scheduled date is more than a day old.
Can I run the script across many sites?
Yes. WP-CLI aliases turn it into a loop. With aliases in ~/.wp-cli/config.yml:
@shop:
ssh: deploy@shop.example.com/var/www/html
@blog:
ssh: deploy@blog.example.com/var/www/htmlfor site in @shop @blog; do
echo "== $site"
./cron-health.sh "$site" || echo "!! $site needs attention"
doneRun it from one management machine every 15 minutes and send the output somewhere a person reads: email, a Slack webhook, or a monitor’s failure endpoint. If you already manage updates across sites, add it next to the checks in our auto-updates at fleet scale setup, because a plugin update that breaks a scheduled task is exactly what this catches.
How long does Action Scheduler keep old actions?
Longer than most people expect, and the numbers changed in version 4.0.0. From the queue cleaner source and the performance docs, checked 15 November 2026:
Setting | Default | How to change it |
|---|---|---|
Completed and cancelled actions | Deleted once older than 31 days |
|
Failed actions | Deleted once older than three months (since 4.0.0) |
|
Statuses the cleaner purges |
|
|
When the cleaner runs | Daily at 3am site time (a recurring action, hook | Run it by hand with |
In-progress timeout | 300 seconds, then marked failed |
|
The data lives in four tables, each with your table prefix: actionscheduler_actions, actionscheduler_logs, actionscheduler_groups and actionscheduler_claims. The actions table is indexed on status and scheduled date, so a count by status is cheap even on a large site:
wp db query "SELECT status, COUNT(*) AS n FROM $(wp db prefix)actionscheduler_actions GROUP BY status;"If those numbers are in the millions, clean in batches from the command line instead of waiting for the daily job. The Action Scheduler docs give this example for failed actions, and --before matches the last-modified date:
wp action-scheduler clean --status=failed --batch-size=50 --before='90 days ago' --pause=2The defaults are batch size 20, no pause, and statuses complete and canceled, so check wp action-scheduler clean --help before a big run. One real example of what neglect looks like: in issue 541 (April 2020) a store reported a 14.3 GB logs table and about 38 million action rows, which maintainers thought were mostly duplicate completed actions from one plugin, with the daily purge falling behind because its queries timed out on the host. Retention for failed actions is a business decision as well: the source comment says three months was picked to match quarterly accounting, and tells store owners to adjust it for audit rules such as PCI DSS.
Keep this next to your other housekeeping. Expired transients and autoloaded options pile up the same quiet way, and our guides to deleting expired transients and database mistakes that crash sites cover that side.
Which plugins help, and what do people say about them?
You can run everything above with no plugin. A plugin is worth it when someone who does not use a terminal needs to see events or logs. Numbers below come from the WordPress.org plugin API on 15 November 2026. The API’s support figure only covers recent threads (it reports threads in the last two months), so it says little about a plugin with few threads.
Plugin | Rating | Active installs | Last updated | Recent support threads resolved |
|---|---|---|---|---|
WP Crontrol 2.0.0 | 4.4 of 5 (167 reviews) | 300,000+ | 15 Oct 2026 | 1 of 8 |
Action Scheduler 4.2.0 | 3.5 of 5 (13 reviews) | 20,000+ | 16 Sep 2026 | 1 of 1 |
Advanced Cron Manager 2.7.0 | 4.7 of 5 (39 reviews) | 30,000+ | 10 Mar 2026 | 0 of 1 |
WP-Cron Status Checker 1.3.1 | 3.5 of 5 (8 reviews) | 5,000+ | 20 Oct 2026 | 0 of 0 |
Action Scheduler’s low install count is misleading: WooCommerce and many other plugins bundle their own copy, so the standalone plugin is only one way it gets onto a site.
WP Crontrol
What it does, from its WordPress.org page: lists every event with its callbacks and next run, lets you run, pause, edit and delete events, manages custom schedules, and flags events with no action or a missed schedule. Version 2.0.0 (15 October 2026) made logging and Cron Insights free, added a Cron menu, and added Cron Alerts, which email you when a logged event fails (at most once an hour per event, or as a daily summary). Logging is off until you turn it on per event, logs keep no event arguments, and they are kept 30 days up to 10,000 entries per site.
What reviewers say (checked 15 Nov 2026 on its reviews page): praise is about debugging and forensics and about being a plain cron manager. Complaints in the last few weeks are about the plugin’s new ownership (Awesome Motive took over maintenance on 8 October 2026) and concern about the added AI features and bloat (the changelog also lists dismissible suggestions for other plugins from the same team), plus older bug reports such as deleted events not disappearing and a next-run date showing 1970. Treat the ownership worry as opinion; the 2.0.0 changelog lists the new menus, alerts and notices.
Action Scheduler
It is a library first. WooCommerce and others load it, and the Tools, Scheduled Actions screen is the built-in way to see pending, failed and past-due actions. The reviews page has only 13 reviews, mostly from 2 or more years ago, and only a couple within the last year, so there is too little recent feedback to summarise. We would rather read the GitHub issues (next section) than the star rating.
Advanced Cron Manager and WP-Cron Status Checker
Advanced Cron Manager has 39 reviews (4.7 of 5) with only one in the last 12 months, and its WordPress.org page lists it as tested up to WordPress 6.9.11, so check it on a staging copy of a 7.1 site first. WP-Cron Status Checker has 8 reviews, so we have nothing reliable to say about user experience.
Our suggestion
- You use SSH or WP-CLI: the script in this post plus Healthchecks.io or a similar monitor covers it with no plugin. You get exit codes and no admin-side code.
- A non-technical owner needs to see events: WP Crontrol, with logging on only for the few events that matter and the Cron Alerts email checked with its test button.
- WooCommerce store: use Tools, Scheduled Actions for the daily look, the mu-plugin above for alerts, and server cron so the queue never depends on traffic.
- We do not recommend stacking several cron plugins. Each one reads the same cron option, and they add admin pages without adding detection.
Healthchecks.io and Cronitor are outside services, so cron results leave your server. The ping in this post sends only an HTTP request with the exit status in the URL, but check your policy before you add any new third-party monitor.
Common mistakes people report
Checked on 15 November 2026. Each item is paraphrased from the linked source.
- Disabling WP-Cron and adding no server cron. Everything schedules and nothing runs. The WordPress handbook page above pairs the constant with a task scheduler for this reason. Run
wp cron testto confirm WP-Cron is off on purpose, then check the heartbeat is arriving. - Blocking the loopback request. Basic Auth, a WAF rule or a Cloudflare challenge on
wp-cron.phpmakes WordPress’s own request fail, and scheduled posts go missing. The loopback documentation explains the mechanism, and a long-running Trac ticket on missed scheduled posts describes scheduled posts missed behind Cloudflare even with a system cron calling wp-cron.php. WP-CLI cron avoids the problem. - Tasks stuck in progress, then failed. In issue 1018 (December 2023) about 10,000 tasks sat in progress for 10 to 15 minutes before failing, and the reporter got them through by running the queue with WP-CLI. No cause was confirmed. Large queues belong on WP-CLI, not on page-load cron.
- Letting the tables grow. Issue 541 (April 2020) is the standard case: tens of millions of rows and a purge that timed out. Set retention and run
wp action-scheduler cleanin batches. - An uncaught exception ends the batch. Issue 1059 tracks exception handling inside Action Scheduler. On 1 September 2026 a reporter described a race on version 4.1.0 where a recurring action deleted by another process throws an uncaught exception and abandons the rest of the batch. It was still open when we checked, so watch the failed count after any unexplained gap in processing.
- Blaming the wrong plugin. The same issue notes that only one bundled copy of Action Scheduler loads per site, so an error can show up under another plugin’s name. Check
wp action-scheduler version(andwp action-scheduler source) before opening a support ticket.
How do I make my own scheduled tasks easier to monitor?
Detection catches failures; good task code makes them easier to diagnose.
- Catch exceptions inside WP-Cron callbacks, log them with context, and re-schedule a one-off task yourself if it must retry. WP-Cron will not retry it for you.
- Prefer Action Scheduler for work that must not be lost. It records failures with the error message and keeps going with the rest of the queue.
- Record a last-success timestamp for important jobs, so a check can alert when it is older than expected even if the job never errored.
add_action( 'my_nightly_sync', function () {
try {
my_run_sync();
update_option( 'my_nightly_sync_last_ok', time(), false );
} catch ( Throwable $e ) {
error_log( 'my_nightly_sync failed: ' . $e->getMessage() );
wp_schedule_single_event( time() + 15 * MINUTE_IN_SECONDS, 'my_nightly_sync' );
}
} );# alert if the sync has not succeeded for 26 hours
last=$(wp option get my_nightly_sync_last_ok 2>/dev/null || echo 0)
[ $(( $(date +%s) - last )) -gt 93600 ] && echo "nightly sync stale"Catching Throwable also catches PHP Error cases such as calls to undefined functions, which a plain catch ( Exception $e ) misses.
Checklist
DISABLE_WP_CRONset and server cron runningwp cron event run --due-nowevery 5 minutes- Heartbeat built on the WP-CLI exit code, not on a
wp-cron.phpHTTP status - Overdue check using the
timefield, notnext_run_relative - Action Scheduler failed and past-due counts checked, not the
runexit code - Missed scheduled posts checked against
post_date_gmt - Failure alert hooked (or WP Crontrol Cron Alerts tested) and delivered somewhere a person reads
- Retention reviewed: 31 days for complete and cancelled actions, three months for failed ones
- Critical jobs record a last-success timestamp
Frequently asked questions
How do I know if WordPress cron jobs are not running?
List events with their time field and compare with the current time. Events more than a few minutes in the past mean nothing is running WP-Cron. The default next_run_relative column shows overdue events as “now”, so it will not tell you.
Does WordPress log failed cron jobs?
No. In our tests, a task that threw an exception or hit a fatal error left nothing in WordPress. The only trace was the PHP error in the server error log, and a failed one-off event was removed from the schedule.
Will a failed WP-Cron event retry?
A recurring event runs again at its next interval, and fails again if the cause is still there. A one-off event is removed before it runs, so it does not retry. Catch the error in your callback and reschedule it yourself if it must run.
How do I find failed Action Scheduler actions?
Run wp action-scheduler action list --status=failed, then wp action-scheduler action get <id> --field=log_entries for the error message. In wp-admin, go to Tools, Scheduled Actions, and use the Failed filter.
Can I use the exit code of wp action-scheduler run for monitoring?
No. In our test it exited 0 while two of the three actions failed. Query the failed and past-due counts instead.
Why does curl to wp-cron.php return 200 when nothing ran?
wp-cron.php exits quietly with 200 when another run holds the cron lock, including a run that crashed and never released it. Use wp cron event run --due-now, which returns 1 when a task fails.
What causes “Missed schedule” on posts?
The publish_future_post event did not run on time, almost always because WP-Cron is not running or the loopback request is blocked. Fix the cron setup; wp cron event run --due-now publishes missed posts immediately.
How long does Action Scheduler keep completed and failed actions?
Completed and cancelled actions are deleted after 31 days and failed ones after three months by default (since version 4.0.0), by a cleaner that runs daily. Change them with action_scheduler_retention_period and action_scheduler_retention_period_for_failed.
Should I use ALTERNATE_WP_CRON?
Only as a workaround on a host that blocks loopback requests and gives you no real cron. With server cron and DISABLE_WP_CRON you do not need it.
How we tested this
Results marked as tests come from our own site on 17 October 2026: WordPress 7.1.3, PHP 8.3.35 on Apache, MariaDB 11, WP-CLI 2.12.0 and Action Scheduler 4.2.0 in Docker. Failures were real exceptions and real fatal errors in a must-use plugin, run through WP-CLI, through wp-cron.php with and without DISABLE_WP_CRON, and through Action Scheduler’s own runner. On 15 November 2026 we re-read the current sources: WordPress core (wp-cron.php, wp-includes/cron.php and default constants), the WP-CLI cron command, the Action Scheduler queue runner, queue cleaner, schema and WP-CLI commands, actionscheduler.org/wp-cli and the performance page, and the Healthchecks.io HTTP API page. We did not re-run the Docker tests that day, so output blocks show 17 October timestamps.
Need scheduled tasks watched for you? Our WordPress care plans include cron and Action Scheduler monitoring across your sites, and if jobs are failing right now, get WordPress help.
Plugins we build and run
We maintain these ourselves, which is why we can support them on your site.
- BuddyNextThe self-hosted community engine for WordPress
- BuddyXFree community theme, Pro when you outgrow it
- ReignPremium community theme. Add pieces, build anything
- JetonomyCommunity forum and Q&A for WordPress
- EventonomyEvents and RSVPs for WordPress communities
- LearnomyCourses and learning communities on WordPress
- ListoraDirectories and listings your members can browse
- SnipShareCode sharing built for developer communities
- WB Ad ManagerAd placements that turn traffic into revenue
- WP Career BoardA job board your community actually uses
- WP Sell ServicesSell services with offers, orders, and payouts
- MediaVersePhotos, video, and media albums for members
- WB GamificationPoints, badges, and rewards that keep members active
- Product RoadmapPublic roadmaps with voting your users trust



