Skip to navigation Skip to main content

Free Grow sales & stop fraud — Smart Cycle Discounts + TrustLens, free on WordPress.org Two free WooCommerce plugins

Explore both

Free Grow sales & stop fraud — Smart Cycle Discounts + TrustLens, free on WordPress.org Two free WooCommerce plugins

Explore both
  • WordPress
    WordPress Plugins
    View all
    Smart Cycle Discounts logo

    Smart Cycle Discounts

    Automate discount campaigns with scheduling, analytics, and smart product targeting.

    7 Discount Types Cycle AI
    Free Pro from $59
    TrustLens logo

    TrustLens

    Customer trust intelligence for WooCommerce. Score customers, spot abuse, protect revenue.

    Trust Scores Abuse Detection
    Free Pro from $79

    New Plugin

    Coming Soon

    Something exciting is in the works. Join the waitlist to be first to know.

    Get Notified
    Notify Me
    Secure Checkout
    WordPress.org
    14-Day Refund
    Resources
    Documentation Guides & tutorials
    Discount Calculator Plan your strategy
    Support Get help
    SCD Changelog Discount plugin updates
    TrustLens Changelog Trust intelligence updates
    Get notified on new releases
  • Affiliate
    Program
    Overview How the program works
    How It Works 4 steps from apply to earn
    Commission Details 30% · 60-day cookie · recurring
    Get Started
    Apply Now Open
    Takes ~2 minutes
    Earnings Calculator Estimate your monthly income
    FAQ Payouts, cookies, renewals
    Resources
    Brand Kit Logos, banners, copy, social
    Playbook Tactics that actually convert
    FTC Disclosure How to disclose properly
    Affiliate Terms Full program agreement
    Contact Team Open the contact form
    Earn 30% recurring on every sale Free to join · 60-day cookie · monthly PayPal payouts
    Apply Now
  • Blog
  • DOCS
    Docs & Resources

    Guides, references, and answers for every Webstepper plugin.

    Smart Cycle Discounts Automated WooCommerce discount campaigns
    Getting started › Discount types › Cycle AI ›
    TrustLens Customer trust & fraud intelligence
    Trust scoring › Detection modules › Card-testing defense ›
    Docs Home Guides FAQ Pricing Support
    WordPress tools that solve real problems
  • Contact Us
  • About
    Company

    Our Story

    Founded 2020

    Built by store owners, for store owners. We create WordPress tools that solve real problems.

    Learn more
    Built from Experience Real solutions we use ourselves
    Time is Precious Simple, intuitive tools
    Real Support Talk to the founders
    Legal & Contact
    Contact Us Privacy Policy Terms of Service Refund Policy
    14-Day Money-Back Guarantee No questions asked
Popular requests
  • smart cycle discounts
  • trustlens
  • chargeback protection
GET STARTED

Glossary

1
  • TrustLens Glossary

Detection Modules

9
  • Card Testing Defense
  • Chargeback Tracking
  • Shipping Anomalies
  • Linked Accounts Detection
  • Category Aware Risk
  • Coupon Abuse Detection
  • Order Pattern Analysis
  • Return Abuse Detection
  • Modules Overview

Card Testing Defense

9
  • Attack History
  • Allowlists
  • Geo Diversity
  • Auto Escalation
  • Fingerprinting
  • VIP Bypass
  • Panic Button
  • Velocity Thresholds
  • Overview

Chargeback Monitor

7
  • Ratio Email Alerts
  • Dispute Evidence Report
  • Chargeback Monitor
  • Manual Dispute Entry
  • Stripe WooPayments Ingestion
  • Card Network Thresholds
  • Chargeback Ratio Speedometer

Customer Management

7
  • Admin Notes
  • Checkout Enforcement
  • Order Trust Column
  • Bulk Actions
  • Blocking and Allowlisting
  • Customer Detail Profile
  • Customer List

Automation

7
  • Async Dispatch Retries
  • Webhooks and HMAC
  • Rule Inspector
  • Actions Reference
  • Conditions Reference
  • Triggers Reference
  • Automation Overview

Trust Scoring

5
  • Account Age Loyalty Bonus
  • Signals Explained
  • Six Customer Segments
  • The 0–100 Score
  • How Trust Scoring Works
View Categories
  • Home
  • Docs
  • Trustlens
  • Automation
  • Async Dispatch Retries

Async Dispatch Retries

3 min read

The automation engine dispatches all rule actions asynchronously through Action Scheduler with automatic retry on failure. This page covers the dispatch model, the retry policy, what happens when an action fails permanently, and how to monitor dispatcher health.


The Dispatch Model #

When a rule fires:

  1. The engine evaluates conditions in-process (fast, blocking)
  2. If conditions pass, each action becomes a queued Action Scheduler job
  3. The triggering event proceeds normally — no waiting
  4. Action Scheduler picks up the jobs on its next tick (usually within seconds)
  5. Each action’s handler runs the side effect (send email, fire webhook, etc.)
  6. Success or failure is logged
  7. Failed jobs are rescheduled per the retry policy

This separation means: a customer’s checkout completes immediately even if a downstream webhook receiver is slow. Actions don’t slow down customer-facing flows.


The Retry Policy #

Attempt Delay From Original Trigger
1 (initial) Immediate (within seconds of trigger)
2 (retry 1) + 60 seconds
3 (retry 2) + 120 seconds (180s from original)
4 (retry 3) + 240 seconds (420s from original)
Stop After 4 total attempts, action is marked failed

The backoff is exponential-ish (60 → 120 → 240). This catches most transient failures — a 2-minute Slack outage will resolve before retry 3.


What Counts as a Failure #

Action Failure Conditions
Block / Allowlist / Tag customer Database error (very rare)
Hold / Cancel order Order not found, status transition rejected by WooCommerce
Send email wp_mail() returns false, or SMTP plugin reports delivery failure
Fire webhook HTTP 4xx/5xx response, timeout (10s), DNS failure, connection refused

Non-2xx HTTP responses are treated as failure. A 200 with an error body is treated as success — TrustLens only checks the status code.


Permanent Failure #

After 4 total attempts (initial + 3 retries), the action is marked failed and stops retrying. The failure is recorded in the Automation Log with the final attempt’s error.

Permanent failures don’t automatically alert. To get notified when actions fail repeatedly:

  • Review the Automation Log weekly
  • Build a meta-rule that watches for failed actions and alerts
  • Pro: enable the “Action Failure Notification” setting under Reports

Action Scheduler Health #

The dispatcher depends on Action Scheduler (bundled with WooCommerce) running its scheduled actions reliably. If Action Scheduler stalls:

  • Queued actions sit in the queue but never execute
  • Retries never happen
  • The Automation Log shows queued actions without completion events

To check Action Scheduler health: WooCommerce → Status → Scheduled Actions. Filter by status:

  • Pending — waiting to run; should drain within minutes on a healthy site
  • In progress — actively executing; should clear quickly
  • Complete — finished successfully
  • Failed — exception thrown during execution

If pending count is climbing without draining, WP-Cron is probably disabled or your host is rate-limiting. Set up a real cron job hitting wp-cron.php every minute.


Deduplication #

The dispatcher deduplicates jobs at queue time. If the same trigger fires multiple actions on the same target within a few seconds, the dispatcher may collapse duplicate jobs to prevent double-firing.

This dedup is action-aware — multiple distinct actions (block + email + webhook) on the same target each get one job, but a duplicate “send email” job for the exact same target/context within milliseconds is treated as one.


Cooldowns vs Retries #

Two related but distinct concepts:

  • Cooldown — minimum time between firings of a rule on the same target. Set at the rule level. Default: none.
  • Retry — automatic re-attempt of a failed action. Set at the engine level (60/120/240). Not configurable per rule.

A rule with cooldown = 1 hour fires at most once per hour per target. A rule with no cooldown fires every time the trigger event matches. Both behaviors are independent of the retry policy.


Webhook-Specific Retry Behavior #

For webhook actions, retry honors HTTP semantics:

  • 5xx responses: retry (server probably temporary issue)
  • 4xx responses: retry (might be a transient routing issue)
  • Timeouts: retry
  • 2xx response: success, no retry

Some webhook receivers signal “don’t retry” with specific status codes (some APIs use 410 Gone). TrustLens doesn’t special-case any 4xx — all retry the same way. If you have a receiver that genuinely shouldn’t retry, return 2xx and ignore the payload instead of erroring.


Monitoring Dispatch Health #

Periodically check:

  • Action Scheduler queue depth — anything chronically large indicates the dispatcher is falling behind
  • Automation Log failure rate — climbing failures suggest an upstream issue (slow webhook receiver, broken email config)
  • Average action latency — visible in the log; should be sub-second for most actions, sub-10s for webhooks

If you’re running 100+ rule fires per day, build a habit of reviewing dispatch health weekly. It’s the kind of system that’s silent when working correctly and silent when broken — the failure mode is usually “nothing is happening anymore.”


Synchronous Execution (Not Supported) #

The engine doesn’t support synchronous action execution. All actions are async. If you have a use case that genuinely requires synchronous side effects (e.g. modifying an order before WooCommerce processes it further), don’t use the automation engine — write a custom WooCommerce action hook handler directly.

The trade-off: async dispatch is much safer (no risk of slowing checkout, no risk of taking down the site if a receiver is slow) but means actions are eventually consistent, not immediately consistent.

Updated on June 4, 2026

What are your Feelings

  • Happy
  • Normal
  • Sad

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Automation OverviewWebhooks and HMAC
Table of Contents
  • The Dispatch Model
  • The Retry Policy
  • What Counts as a Failure
  • Permanent Failure
  • Action Scheduler Health
  • Deduplication
  • Cooldowns vs Retries
  • Webhook-Specific Retry Behavior
  • Monitoring Dispatch Health
  • Synchronous Execution (Not Supported)
Newsletter

Insights that grow your business

Join thousands of WooCommerce store owners who get actionable tips, plugin updates, and industry news every week.

We respect your privacy. Unsubscribe at any time.

Weekly updates — Fresh content every Tuesday
Exclusive content — Tips you won't find on our blog
Early access — Be first to know about new plugins
Webstepper
Weekly WooCommerce Tips
Just now
This week: 5 proven strategies to boost your average order value using smart discount campaigns...
New issue!
Webstepper

Tools for store owners who'd rather grow than grind.

Simple, powerful plugins that help WooCommerce store owners sell more — without the learning curve.

500+ happy stores

Products

  • Smart Cycle Discounts
  • TrustLens
  • Discount Calculator
  • Sale Calendar

Company

  • About Us
  • Blog
  • Contact
  • Affiliates

Resources

  • Help Center
  • Guides
  • Affiliate Program
  • Become a Partner

Questions? We actually answer.

Real humans, real help. No bots, no runaround. Usually within a few hours.

Get in touch
Operated by Setmood LLC · 7901 4th St N, St Petersburg, FL 33702 · United States

© 2026 Webstepper. All rights reserved.

Privacy Terms Refunds
Visa Mastercard PayPal Apple Pay Google Pay & more
Limited Time Offer

Save 15% on
SCD, TrustLens & the Bundle

Smart Cycle Discounts and TrustLens — buy either plugin or grab both in the bundle. Use code at checkout.

WELCOME15
23 hours
:
59 minutes
:
59 seconds
Claim My Discount

Just want one? Smart Cycle Discounts · TrustLens

  • WordPress
    Back
    WordPress Plugins
    View all
    Smart Cycle Discounts logo

    Smart Cycle Discounts

    Automate discount campaigns with scheduling, analytics, and smart product targeting.

    7 Discount Types Cycle AI
    Free Pro from $59
    TrustLens logo

    TrustLens

    Customer trust intelligence for WooCommerce. Score customers, spot abuse, protect revenue.

    Trust Scores Abuse Detection
    Free Pro from $79

    New Plugin

    Coming Soon

    Something exciting is in the works. Join the waitlist to be first to know.

    Get Notified
    Notify Me
    Secure Checkout
    WordPress.org
    14-Day Refund
    Resources
    Documentation Guides & tutorials
    Discount Calculator Plan your strategy
    Support Get help
    SCD Changelog Discount plugin updates
    TrustLens Changelog Trust intelligence updates
    Get notified on new releases
  • Affiliate
    Back
    Program
    Overview How the program works
    How It Works 4 steps from apply to earn
    Commission Details 30% · 60-day cookie · recurring
    Get Started
    Apply Now Open
    Takes ~2 minutes
    Earnings Calculator Estimate your monthly income
    FAQ Payouts, cookies, renewals
    Resources
    Brand Kit Logos, banners, copy, social
    Playbook Tactics that actually convert
    FTC Disclosure How to disclose properly
    Affiliate Terms Full program agreement
    Contact Team Open the contact form
    Earn 30% recurring on every sale Free to join · 60-day cookie · monthly PayPal payouts
    Apply Now
  • Blog
  • DOCS
    Back
    Docs & Resources

    Guides, references, and answers for every Webstepper plugin.

    Smart Cycle Discounts Automated WooCommerce discount campaigns
    Getting started › Discount types › Cycle AI ›
    TrustLens Customer trust & fraud intelligence
    Trust scoring › Detection modules › Card-testing defense ›
    Docs Home Guides FAQ Pricing Support
    WordPress tools that solve real problems
  • Contact Us
  • About
    Back
    Company

    Our Story

    Founded 2020

    Built by store owners, for store owners. We create WordPress tools that solve real problems.

    Learn more
    Built from Experience Real solutions we use ourselves
    Time is Precious Simple, intuitive tools
    Real Support Talk to the founders
    Legal & Contact
    Contact Us Privacy Policy Terms of Service Refund Policy
    14-Day Money-Back Guarantee No questions asked
We use cookies to improve your experience on our website. By browsing this website, you agree to our use of cookies.
More info More info Accept