Cron Jobs
All GSM Middleware scheduled tasks run via external cron (server crontab), not WordPress cron. This ensures reliable execution with precise timing.
Overview
The plugin requires the following scheduled tasks:
| Task | Frequency | Description |
|---|---|---|
| Order Exports | Every 60 min (configurable) | Sync orders from BigCommerce/WooCommerce |
| Inventory Imports | Every 60 min (configurable) | Sync inventory levels to storefronts |
| Tracking Imports | Once per 24 hours | Fetch tracking numbers from Business Central |
| Queue Processor | Every 5 minutes | Process webhook, inventory sync, and dispute queue jobs |
| Email Reports | Per-report schedule | Send configured email reports |
| Log Cleanup | Daily at 3 AM | Clean old log and history records |
Setup
Use the Crontab Generator tool to generate all required cron entries:
- Navigate to Tools → Crontab Generator
- Configure the PHP binary path and intervals
- Click Generate Crontab
- Copy the output to your server's crontab (
crontab -e) - Click Mark as Installed
Detailed Guides
- Cron Setup — Initial cron configuration
- Crontab Generator — Centralized cron management tool
- Tracking Sync — Tracking import details
- Inventory Sync — Inventory sync operations
- Reports — Email report schedules
- Log Cleanup — Automated log cleanup