Jobs & Tasks
yStore uses two mechanisms for background processing: the Craft CMS queue for async jobs and cron for scheduled tasks.
Queue jobs
These jobs are pushed to the Craft CMS queue and processed asynchronously. You can monitor them in Utilities → Queue Manager in the Craft CP.
| Job | Trigger | Description |
|---|---|---|
| Send Order Email | Order placed / status changed | Renders and sends transactional emails |
| Generate Invoice PDF | Order placed / manually triggered | Generates the PDF invoice for an order |
| Generate Gift Card PDF | Gift card purchased | Creates the gift card voucher PDF |
| Send Flow Email | Automation flow action | Dispatches marketing flow emails |
| Sync Order to Store | Order status change (online mode) | Pushes status update to connected store |
| Fetch Remote Orders | CRON / manual trigger | Pulls new orders from connected store |
| Update Product Prices | CRON / import | Batch updates product price fields |
| Rebuild Search Index | CRON / manual | Rebuilds yStore search index entries |
Monitoring the queue
If jobs are failing or stuck:
- Go to
Craft CP → Utilities → Queue Manager. - Check for failed jobs and their error messages.
- Retry failed jobs using the retry button.
- If jobs aren't processing, check your web server or PHP-FPM process manager — the queue runner must be active.
For production, run the queue as a daemon process instead of relying on web requests:
php craft queue/listen --verbose
Or add it to a supervisor process configuration for reliability.
Cron jobs
Scheduled tasks run via the system cron. Install the default yStore cron schedule with:
php craft yui/cron/install
Default cron schedule
| Task | Schedule | Description |
|---|---|---|
| Analytics collection | Every 30 min | Collects and aggregates store analytics |
| Sitemap update | Daily at 2:00 | Regenerates product sitemap |
| Widget update | Every hour | Refreshes dashboard widget data |
| Abandoned cart detection | Every 15 min | Marks carts as abandoned and triggers reminders |
| Flow runner | Every 5 min | Executes pending automation flow actions |
| Flow cleanup | Daily at 3:00 | Removes completed/expired flow execution records |
Store sync cron (when online store connected)
| Task | Schedule | Description |
|---|---|---|
| Fetch orders | Every 10 min | Pulls new orders from connected store |
| Fetch customers | Every 30 min | Syncs customer data from connected store |
| Update order statuses | Every 5 min | Pushes order status changes to connected store |
| Create products | Every 30 min | Imports new products from connected store |
Viewing cron configuration
To see what's currently installed:
php craft yui/cron/list
To uninstall cron jobs:
php craft yui/cron/uninstall
Manually running tasks
Most scheduled tasks can also be triggered manually via console commands. See Console Commands for the full list.
Gift card batch generation runs as a queue job. If customers aren't receiving gift card PDFs, check the queue for failed generation jobs and inspect the error message.