Title: AMPM Queue Manager for Action Scheduler
Author: Marcelo Pedra
Published: <strong>July 31, 2026</strong>
Last modified: July 31, 2026

---

Search plugins

![](https://ps.w.org/ampm-queue-manager-action-scheduler/assets/banner-772x250.png?
rev=3630572)

![](https://ps.w.org/ampm-queue-manager-action-scheduler/assets/icon-256x256.png?
rev=3630563)

# AMPM Queue Manager for Action Scheduler

 By [Marcelo Pedra](https://profiles.wordpress.org/kent-brockman/)

[Download](https://downloads.wordpress.org/plugin/ampm-queue-manager-action-scheduler.1.0.3.zip)

 * [Details](https://wordpress.org/plugins/ampm-queue-manager-action-scheduler/#description)
 * [Reviews](https://wordpress.org/plugins/ampm-queue-manager-action-scheduler/#reviews)
 *  [Installation](https://wordpress.org/plugins/ampm-queue-manager-action-scheduler/#installation)
 * [Development](https://wordpress.org/plugins/ampm-queue-manager-action-scheduler/#developers)

 [Support](https://wordpress.org/support/plugin/ampm-queue-manager-action-scheduler/)

## Description

**AMPM Queue Manager for Action Scheduler** gives site administrators fine-grained,
safe control over WordPress Action Scheduler behavior — without editing code.

Action Scheduler powers background processing in WooCommerce, Mailchimp, Jetpack,
and dozens of other plugins. Its default settings are tuned for medium-to-large 
environments and can overwhelm shared hosting servers, causing slow page loads, 
server timeouts, and database bloat.

This plugin lets you tune key parameters from a clean admin panel (**Settings  Queue
Manager**), with pre-selected recommended values and plain-language descriptions
of each trade-off.

The **Tools** tab shows the current queue status, provides a deliberately limited
manual queue run, links to the Action Scheduler administration screen, and includes
an adaptive AJAX cleaner for old completed, failed, or canceled actions.

#### Compatibility

 * Requires WordPress 5.8 or newer.
 * Requires PHP 7.2 or newer.
 * Version 1.0.1 was confirmed working with WordPress 7.0.2 and Action Scheduler
   3.9.3.

#### Tools: Queue Status and Manual Run

See pending, currently due, in-progress, and recently failed actions at a glance.
If work is waiting, an administrator can start one conservative processing cycle
limited to one runner, batches of 25 actions, and a 20-second runner time limit.

Because due actions can send email, process orders, or contact external services,
the manual run requires explicit confirmation. A direct link opens the standard 
Action Scheduler administration screen, using the WooCommerce-integrated location
when WooCommerce is active.

The queue status also reports the total number of failed actions and how many failed
during the last 24 hours. Administrators can permanently delete all failed actions
and their related logs in conservative batches after reviewing a clear confirmation
warning.

#### Tools: Adaptive Action Scheduler Purge

Action Scheduler default cleanup routines often fail to process massive backlogs
on old stores, leaving hundreds of thousands of orphaned rows.
 The plugin includes
a dedicated **Tools** tab providing an immediate, on-demand Action Scheduler DB 
cleanup. * **Adaptive Batching**: Safely deletes old records using an intelligent
AJAX loop that self-tunes its chunk size (up to 10,000 items per request) based 
on your server’s real-time response capability. * **Zero-Timeout Architecture**:
Built-in 504 Gateway Timeout detection automatically halts and retries with a smaller
payload, ensuring large databases (50k+ rows) can be cleared on any hosting plan
without crashing. * **Feedback & Safety**: Shows real-time granular progress and
requires explicit database-backup confirmation before starting the irreversible 
cleanup.

#### Action Scheduler Settings

**Concurrent Batches**
 Controls how many batches of background jobs can run at 
the same time. Default: 5. On shared hosting, 5 simultaneous batches can spike CPU
and memory usage, triggering server-level throttling or timeouts. Setting this to
1 ensures only one batch runs at a time, protecting server resources — at the cost
of slower queue processing.

**Jobs per Batch**
 Controls how many individual jobs (actions) are processed in
each batch run. Default: 25. Lowering this reduces peak memory usage. Raising it
speeds up queue processing on capable servers but risks PHP memory limit errors 
on constrained environments.

**Time Limit per Run**
 Controls the maximum seconds a queue runner is allowed to
execute before stopping. Default: 30 seconds. When running only 1 concurrent batch,
the 30-second default may not be enough to drain large queues. Increasing to 60 
or 90 seconds lets each run do more work without needing additional concurrency.

**Log Retention Period**
 Controls how long completed and failed action records 
are kept in the database. Default: 30 days. On busy stores, the Action Scheduler
log can grow to hundreds of thousands of rows. Reducing retention to 7 or 14 days
keeps the database lean without losing meaningful debugging history for most use
cases.

#### WooCommerce Settings

**Product Loop Transient Expiration**
 Controls how long WooCommerce caches product
loop data (wc_product_loop_* transients) in the database. Default: 30 days. These
transients accumulate per product ID and can bloat the wp_options table significantly.
Reducing to 1 day keeps the cache fresh and the database tidy, with minimal performance
impact since WooCommerce regenerates them efficiently.

**Cart Fragments**
 Controls whether WooCommerce fires an AJAX request on every 
page load to update the mini-cart widget in real time. Default: Enabled. This AJAX
call adds latency to every page view. If your theme does not display a live mini-
cart that updates instantly (e.g. you use a simple cart icon that links to /cart),
disabling fragments eliminates an unnecessary request per visitor. The cart page
and checkout are not affected.

## Installation

 1. Upload the `ampm-queue-manager-action-scheduler` folder to `/wp-content/plugins/`.
 2. Activate the plugin through the **Plugins** menu in WordPress.
 3. Go to **Settings  Queue Manager** and review or adjust the settings.

## FAQ

### Does this plugin require WooCommerce?

No. The Action Scheduler settings work on any WordPress site. The WooCommerce section
is automatically disabled and hidden if WooCommerce is not active.

### Is it safe to use on a production site?

Yes. All settings ship with conservative recommended values. The admin panel uses
a strict allowlist — no arbitrary values can be submitted.

### What happens if I uninstall the plugin?

The plugin deletes its settings from the database on uninstall. Action Scheduler
and WooCommerce revert to their upstream defaults.

### Can I disable only some features?

Yes. Each parameter is configured independently. You can adjust only the settings
that matter for your site.

### Will this conflict with other plugins that modify Action Scheduler?

The plugin uses standard WordPress filters. If another plugin applies the same filters,
the last one registered wins. In most cases there is no conflict, but if you notice
settings not taking effect, check for other plugins that modify Action Scheduler
behavior.

### What does the Purge Tool delete?

The Purge Tool selects only old actions whose status is `complete`, `failed`, or`
canceled`, together with their related log rows. Pending and recent actions are 
excluded. Database changes are irreversible, so make a current backup and test on
a staging site before using the tool on a production database.

### What does Run Queue Now do?

It asks Action Scheduler to process actions that are already due. The run is deliberately
constrained to one runner, batches of 25 actions, and a 20-second runner time limit.
Individual actions can still take longer or perform external side effects, so review
the queue and create a backup before running unfamiliar jobs.

### What does Delete Failed Actions remove?

It permanently deletes every action currently marked as `failed`, regardless of 
age, together with its related Action Scheduler logs. It does not delete pending,
in-progress, complete, or canceled actions. Review the failure details first because
they may reveal a recurring problem, and back up the database before continuing.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“AMPM Queue Manager for Action Scheduler” is open source software. The following
people have contributed to this plugin.

Contributors

 *   [ Marcelo Pedra ](https://profiles.wordpress.org/kent-brockman/)

“AMPM Queue Manager for Action Scheduler” has been translated into 1 locale. Thank
you to [the translators](https://translate.wordpress.org/projects/wp-plugins/ampm-queue-manager-action-scheduler/contributors)
for their contributions.

[Translate “AMPM Queue Manager for Action Scheduler” into your language.](https://translate.wordpress.org/projects/wp-plugins/ampm-queue-manager-action-scheduler)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/ampm-queue-manager-action-scheduler/),
check out the [SVN repository](https://plugins.svn.wordpress.org/ampm-queue-manager-action-scheduler/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/ampm-queue-manager-action-scheduler/)
by [RSS](https://plugins.trac.wordpress.org/log/ampm-queue-manager-action-scheduler/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.3

 * Removed bundled PO, MO, and POT files from the WordPress.org package; translations
   are managed through translate.wordpress.org.
 * Added nonce validation for the settings success/reset notice query parameters.
 * Prepared every action ID used by the adaptive purge with an individual `%d` placeholder.

#### 1.0.2

 * Added a batch-based tool to permanently delete all failed actions and their related
   logs.
 * Changed the queue summary to show total failures while retaining the 24-hour 
   failure count.
 * Documented successful testing with WordPress 7.0.2 and Action Scheduler 3.9.3.
 * Sanitized each submitted setting before applying the existing strict allowlist.
 * Documented the safe table-name interpolation required for compatibility with 
   WordPress 5.8.

#### 1.0.1

 * Renamed the plugin to AMPM Queue Manager for Action Scheduler and changed its
   slug and text domain to `ampm-queue-manager-action-scheduler`.
 * Added queue status counters for pending, due, in-progress, and recently failed
   actions.
 * Added a deliberately limited manual queue run with explicit confirmation.
 * Added a link to the standard Action Scheduler administration screen, including
   its WooCommerce location.
 * Fixed the purge query so it no longer references the nonexistent `action_id` 
   column in the claims table.
 * Updated the WordPress.org contributor metadata and removed the unnecessary manual
   translation loader.

#### 1.0.0

 * Initial release.

## Meta

 *  Version **1.0.3**
 *  Last updated **7 hours ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 5.8 or higher **
 *  Tested up to **7.0.2**
 *  PHP version ** 7.2 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/ampm-queue-manager-action-scheduler/)
   and [Spanish (Argentina)](https://es-ar.wordpress.org/plugins/ampm-queue-manager-action-scheduler/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/ampm-queue-manager-action-scheduler)
 * Tags
 * [action scheduler](https://wordpress.org/plugins/tags/action-scheduler/)[cron](https://wordpress.org/plugins/tags/cron/)
   [performance](https://wordpress.org/plugins/tags/performance/)[queue](https://wordpress.org/plugins/tags/queue/)
   [woocommerce](https://wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://wordpress.org/plugins/ampm-queue-manager-action-scheduler/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/ampm-queue-manager-action-scheduler/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/ampm-queue-manager-action-scheduler/reviews/)

## Contributors

 *   [ Marcelo Pedra ](https://profiles.wordpress.org/kent-brockman/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/ampm-queue-manager-action-scheduler/)