Queue Manager

See every feed and notification waiting in the Gravity Forms background queues, find out why a queue is paused, and resume it with one click.

Overview

Gravity Forms sends feeds, such as Webhooks, Mailchimp, HubSpot and Zapier, and notifications in the background. When a task fails, Gravity Forms pauses that queue and tries again later, and nothing in it is sent until then. The Gravity Forms Queue Manager Add-On shows you when that happens and gets things moving again.

It adds a Feed Queue page under Forms that shows which queues are paused and why, when Gravity Forms will try again, and every task that is waiting, with its form, entry and feed. Fix the cause, click Resume on that queue, and it runs straight away.

The same queue status appears on Forms → System Status, with Resume buttons, and is included every time you copy the system report. A Logs tab records each pause, resume and clear, and who made it.

Key Benefits

  • See every paused queue, why it paused, and when Gravity Forms will retry it.
  • List every queued feed and notification task, linked to its form, entry and feed settings.
  • Filter tasks by form or add-on, and open the full details of any task.
  • Resume one queue, or every paused queue at once.
  • Clear tasks that should no longer be sent.
  • Resume queues from System Status, and include queue status in copied system reports.
  • Keep an activity log of pauses, resumes and clears, with who made each change.

How It Works

Install and activate the add-on. There is nothing to configure: it reads the queue state Gravity Forms already keeps. Open Forms → Feed Queue.

The status box shows whether anything is paused. The Feed Add-ons tab lists each active feed add-on with its queued tasks and status, and the Tasks tab lists every waiting task.

Fix the cause of the failure, such as a service that was down or an expired API key, then click Resume next to that queue. Gravity Forms runs it straight away, and a successful retry adds a note to the entry.

Provide feedback here

Requirements

  • WordPress 6.5 or later
  • Gravity Forms 2.9.7 or later (2.9.25 or later for a separate queue per add-on)
  • PHP 7.4 or later

Changelog

0.1.0-alpha.1

  • Added a Background Queues section with Resume buttons to Forms → System Status, included in the copied system report.
  • Added a Resume button for each paused queue on Forms → Feed Queue. Resume all still runs every paused queue.
  • Added Resume and Clear Queue, and an activity log of pauses, resumes and clears.
  • View more

Changelog — gravityforms/gravityformsqueuemanager

0.1.0-alpha.1

  • Added a Background Queues section with Resume buttons to Forms → System Status, included in the copied system report.
  • Added a Resume button for each paused queue on Forms → Feed Queue. Resume all still runs every paused queue.
  • Added Resume and Clear Queue, and an activity log of pauses, resumes and clears.
  • Initial Labs release: a Forms → Feed Queue page that shows which background queues are paused and why, when Gravity Forms will retry, and every queued feed and notification task with its form, entry and feed.

Documentation

Queue Manager Add-On Documentation


Pre-Requisites

  • Download the add-on from Gravity Labs and install it. See Installing a Gravity Forms Add-On.
  • Gravity Forms 2.9.7 or higher. Per add-on queues (one queue for each add-on) need Gravity Forms 2.9.25 or higher; on older versions every add-on shares one queue.
  • WordPress 6.5 or higher and PHP 7.4 or higher.

Setup

There are no settings. The add-on reads the queue state Gravity Forms already keeps. Once it is active, open Forms → Feed Queue.

  • Who can use it. The Feed Queue page and the Resume buttons on Forms → System Status need the gravityforms_queuemanager capability. Administrators with full Gravity Forms access have it. Give it to other roles with a role editor such as Members. Users who can only view System Status see the Background Queues section without the buttons.

  • Retries. Gravity Forms tries a failed feed once more by default (gform_max_async_feed_attempts is 1). To keep failed feeds in the queue for longer, raise it:

    add_filter( 'gform_max_async_feed_attempts', function ( $max_attempts, $form ) {
        return 3;
    }, 10, 2 );
  • Activity log. The last 500 events are kept in the gf_qmanager_logs option. With Gravity Forms logging enabled for Queue Manager, they are also written to the Gravity Forms log.

See which queues are paused

Go to Forms → Feed Queue. The status box says whether anything is paused, which queue, and when Gravity Forms will try again. The cards count queued tasks, paused queues, and batches. The Feed Add-ons tab lists every active feed add-on with its number of queued tasks and status.

Feed Queue page with the Webhooks queue paused and waiting to retry, two queued tasks, and the Resume and Clear Queue buttons

  • Waiting to retry: Gravity Forms will try again by itself at the time shown in the status box.
  • Paused: the queue will not resume by itself. Click Resume once the cause is fixed.
  • Click a task count to open the Tasks tab filtered to that add-on.

Find the tasks that are stuck

The Tasks tab lists every task waiting in the feed and notification queues, newest first.

Tasks tab listing a Webhooks task with its form, entry, feed name, Waiting to retry status, attempts, and batch

  • Form and Entry link to the form and the entry. Feed links to the feed’s settings.
  • Attempts is how many times Gravity Forms has tried the task.
  • Batch is the end of the batch key, so you can tell which tasks were saved together. Hover over it for the full key.
  • Details shows everything known about the task.
  • Filter by form or add-on, then click Filter.

When more than 1,000 batches are queued, the page reads the oldest 1,000 (the ones Gravity Forms processes first) and says so above the tabs. The Batches card still shows the full count.

Resume the queue

  1. Fix the cause first: wait for the service to come back, renew the API key, or ask the service about rate limits. The entry’s notes usually say what failed.
  2. Click Resume next to that queue. When more than one queue is paused, Resume all runs every one.
  3. Check the entry’s notes: a successful retry adds a new note.

Entry notes showing the failed webhook attempt followed by Webhook sent. Response code: 200.

If the task fails again, Gravity Forms pauses the queue again until it runs out of attempts.

Clear the queue

Clear Queue deletes this site’s queued feed and notification tasks. Those feeds and notifications are never sent, and this cannot be undone. On a multisite network, other sites’ tasks are left in the queue, and the pause stays in place while any of them remain. Use it for tasks that should not be sent any more, or when the problem was in the feed settings (queued tasks keep the old settings, so they would only fail again). Note the entry IDs on the Tasks tab first.

Resume from System Status

Forms → System Status has a Background Queues section with a row for each queue that needs attention, a Resume button for each one, and Resume all. The section is included when you copy the system report.

Background Queues section on the System Status page with the paused Webhooks queue, its Resume button, and Resume all

Check the activity log

The Logs tab records pauses, resumes and clears, and who did them. Pauses come from Gravity Forms, so they are credited to System.

Logs tab showing Gravity Forms pausing the Webhooks queue after a task failed, then an admin resuming it

Click Clear Logs to empty it.

How Queue Manager reads the queues

Gravity Forms stores each background batch as an option named {queue}_batch_{hash} and each queue’s pause state as {queue}_status and {queue}_pause_timestamp. When a feed fails with an error that can be retried, Gravity Forms keeps the task and pauses that queue for half its cron interval (2.5 minutes by default), then tries again. Queue Manager reads those options directly, the same way Gravity Forms does, so it always agrees with what the processors see.

  • Waiting to retry: Gravity Forms paused the queue after a failure and will try again by itself at the time shown.
  • Paused: the queue will not resume by itself, because it was paused without a timestamp, the timestamp is in the future, or the pause expired more than 10 minutes ago and WP-Cron or loopback requests are not running.
  • Resume calls that queue’s own resume(), which dispatches its batches, then removes any pause state that is left. Resume all does this for every paused queue.
  • Clear Queue deletes this site’s queued feed and notification batches. The pause is removed when nothing remains queued for that processor, including batches on other sites in a network. Upgrade, telemetry, bulk action and personal data queues are left alone.