How the Sync Queue Works #
All sync operations are processed through a reliable queue system powered by the Action Scheduler library.
Queue Settings #
- Processing interval: Every 10 seconds (with WP-Cron fallback).
- Queue limit: 10,000 items per site.
- Batch size: 50 items per processing cycle.
Duplicate Prevention #
If a sync request for a user is already pending in the queue, the existing item is updated rather than creating a duplicate.
Dependencies #
The queue supports prerequisite tasks. For example, if a user needs to be synced to GHL before they can be associated with a Custom Object record, the contact creation task is processed first.
Rate Limiting #
- Burst limit: 100 requests per 10 seconds per location.
- Daily limit: 200,000 requests per day.
Multisite #
A 2-minute network-wide processing lock (site transient) ensures only one site processes the queue at a time.
