All posts

Action Scheduler: the WooCommerce queue nobody watches

WooCommerce and many of its extensions push background work into Action Scheduler: subscription renewals, outgoing webhooks, analytics, stock syncs, some email plugins. It runs out of sight, and when it stalls, nothing on the storefront looks wrong.

Free checkout scan

Enter your store address. A real browser adds a product to the cart and walks the checkout up to the payment step, like a customer, and shows you every step with a screenshot.

  • Free, no account
  • Stops before payment, no order
  • Nothing to install
· Updated · 2 min read
A clock on a plain wall

How it runs

Action Scheduler stores jobs in the actionscheduler_actions table and processes them in batches. It is started by WP-Cron, plus an async request after admin page loads. On a quiet store, WP-Cron only runs when someone visits, so the queue only moves when there is traffic.

StatusMeaningWorry when
PendingWaiting for its timeScheduled date is long past (past-due)
In progressRunning nowStays for more than a few minutes
CompleteDone, kept for 30 days by defaultNever
FailedThrew an errorMany with the same message

Signs that it has stalled

Thousands of pending actions, a growing past-due count, or many failed ones with the same error. In the admin: WooCommerce → Status → Scheduled Actions, filtered by Past-due and Failed. Symptoms elsewhere: subscription renewals not charged, webhooks to your ERP or CRM late, analytics stuck.

sql
-- Past-due and failed actions by hook (add your table prefix)
SELECT hook, status, COUNT(*) AS actions, MIN(scheduled_date_gmt) AS oldest
FROM wp_actionscheduler_actions
WHERE (status = 'pending' AND scheduled_date_gmt < UTC_TIMESTAMP() - INTERVAL 1 HOUR)
   OR status = 'failed'
GROUP BY hook, status
ORDER BY actions DESC
LIMIT 20;

Keeping it healthy

  1. Use a real cron. Disable WP-Cron on page load and run it every minute from the server.
  2. Run the queue from WP-CLI. It processes batches without web request time limits.
  3. Read the failures. The log on each failed action names the cause, often an extension or an expired API key.
  4. Keep the table small. Completed and failed actions build up; the default retention is 30 days.
bash
# wp-config.php: stop WP-Cron from running on page views
wp config set DISABLE_WP_CRON true --raw

# crontab of the site user: due cron events, then a pass over the queue
* * * * * cd /var/www/shop && wp cron event run --due-now --quiet
*/5 * * * * cd /var/www/shop && wp action-scheduler run --batch-size=100 --quiet
DISABLE_WP_CRON without a server cron

Turning WP-Cron off without adding the crontab stops everything: scheduled posts, renewals, the queue. Add the cron line in the same change.

Watch it

Alert when past-due actions grow. It is the WooCommerce equivalent of Magento’s cron and indexers: the part of the store that works in the background and fails without a sound. Related: order emails not sending.

Check your own store now with the free WooCommerce checkout checker: it walks the checkout in a real browser, stops before payment, and shows the step where it breaks.

Find out your checkout broke before your customers do.

Real checkout checks for Magento and WooCommerce · free plan · no card requiredWooCommerce checkout monitoring →
FAQ

Common questions

Still have a question?More answers, and a way to reach us.Support →
01What is Action Scheduler in WooCommerce?

A background job queue used by WooCommerce and extensions for renewals, webhooks, analytics, syncs and other deferred work, stored in the actionscheduler tables.

02Why are WooCommerce scheduled actions past-due?

The queue is not being run: WP-Cron only fires on visits, it was disabled without a server cron, or actions keep failing and blocking batches.

03How do I run Action Scheduler manually?

With WP-CLI: wp action-scheduler run, ideally from a server cron, with DISABLE_WP_CRON and a real cron for WP-Cron events.