7 min read•Updated: 2026-11-24

Processing Queue, Fair Scheduling & Retries

Understand the Processing Queue: execution stages, atomic wave claiming, fair-share round robin, and dead-letter quarantine.

Why Use a Durable Queue?

During flash sales and holiday shopping peaks, stores often process hundreds of orders per minute. Blasting these orders simultaneously into an Odoo instance would overwhelm Odoo server memory and trigger gateway timeouts.

To prevent outages, ERP Link immediately admits webhooks into a Durable Queue (/app/queue), metering execution with regulated concurrency and anti-starvation guarantees.

Queue Tabs & Lifecycle States

The queue UI features 4 primary tabs:

  • Pending: Tasks queued and awaiting execution slots.
  • Processing: Tasks currently leased and actively executing RPC calls against Odoo.
  • Frozen / Failed: Tasks that encountered transient errors, staged in an exponential backoff cooling period prior to automated retry.
  • Orphans / Dead Letter: Tasks that exhausted their retry budget or produced ambiguous outcomes, quarantined safely for manual operator review.

Atomic Wave Claiming & Fair-Share

The queue engine enforces advanced worker safety (src/lib/queue/):

  • Atomic Wave Claiming: Guarantees that individual queue tasks are claimed atomically by exactly one worker thread.
  • Fair-Share Round Robin: Prevents a single high-volume store with 10,000 queued items from starving an adjacent store with a single priority order.

Quarantine & Circuit Breakers

  • Circuit Breakers: If 5 consecutive RPC operations fail against an Odoo instance, execution leases for that tenant pause temporarily to prevent database hammering, dispatching an immediate admin alert.
  • Quarantining Ambiguous Outcomes: If a socket disconnects before Odoo confirms a sales order write, the task is quarantined until read-back verification proves whether the record was persisted, eliminating duplicate invoice risks.

Encountered an issue applying this guide?

Open a support ticket to have our engineering desk inspect logs directly.

Contact Support
    Processing Queue, Fair Scheduling & Retries | ERP Link Docs | ErpLink