Cron jobs, queues and commands
Overview
This page lists every background job, queue consumer and console command that EU Withdrawal adds, with its schedule. Background jobs run only when Magento cron runs on your server. The queue consumers do too, unless they run as permanent processes. Why they matter and how to check them: Cron, queues and email delivery.
Background jobs
The times are in the timezone set in Stores → Configuration → General → General → Locale Options → Timezone at the Default Config scope. A timezone set only for a website or store view is not used. A job runs on the first cron run after its time.
| Job | Tier | Schedule | What it does | Setting that controls it |
|---|---|---|---|---|
| Receipt retry | Free | Every minute | Sends again the receipts whose earlier try failed and whose next try is due. Up to 50 receipts per run. | Delivery Retry Attempts in Customer Notifications |
| Waiver confirmation retry | Free | Every minute | Sends again the digital-content waiver confirmations whose next try is due. Up to 50 per run. | None |
| Clean-up of unused waiver records | Free | Every hour, on the hour | Deletes waiver consents from checkouts that never became an order. A consent is deleted once it is older than Quote Lifetime (days) in Stores → Configuration → Sales → Checkout → Shopping Cart, or 30 days if that field is empty. | Quote Lifetime (days) (Magento) |
| Daily overdue digest | Free | Every day at 07:00 | Emails one list per store of the requests whose reimbursement is overdue. A request is reminded of again after 23 hours or more. Store views where the digest is off are skipped. | Enabled in Admin Notifications, group 2. Reimbursement Overdue Digest |
| Audit clean-up | Pro | Every day at 03:00 | Removes the IP address, browser information and customer account from Audit entries older than the retention period, and the text of staff notes that older versions stored. Does nothing while the Audit log is off. | Audit Row Retention (days), GC Batch Size, GC Max Runtime (seconds), Enable Audit Log in Audit Log |
| Auto-Approve | Pro | Every minute | One pass over the requests that wait for a decision, up to 50 per pass. Only store views where Auto-Approve is on take part. Store views where the error brake has stopped Auto-Approve are skipped. In dry-run mode the pass only records what it would decide. | Enable Auto-Approval, Dry-Run (preview only) in Auto-Approval |
| Magic Link clean-up | Pro | Every day at 03:30 | Deletes the links that expired, were revoked or were used more than 30 days ago. | None. The 30 days are fixed |
| Unattached photo clean-up | Pro | Every hour, on the hour | Deletes seal photos that were uploaded more than 24 hours ago and never attached to a request. | None. The 24 hours are fixed |
| Photo retention | Pro | Every day at 03:30 | Deletes the seal photos of Approved, Denied and Cancelled requests 6 years after the request last changed. | None. The 6 years are fixed |
Queue consumers
A queue consumer is a background process that picks up waiting messages and handles them. By default, Magento cron starts both consumers. If your host turns that off, run them as permanent processes with the commands on Installation.
| Consumer | Tier | What it handles |
|---|---|---|
eu_withdrawal_receipt_send_consumer | Free | Sends the receipt after the customer submits a withdrawal request, and again when a staff member clicks Resend Receipt. |
eu_withdrawal_waiver_confirmation_send_consumer | Free | Sends again a digital-content waiver confirmation that could not be sent when the order was placed. |
Console commands
The commands belong to Audit (Pro). They never run on their own: your developer runs them from the Magento root folder. How to use them: Verifying Pro artefacts.
| Command | Tier | What it does |
|---|---|---|
bin/magento mageme:eu-withdrawal:audit:verify | Pro | Checks that the audit log is unchanged since its current starting point. It prints the number of entries, lists the redacted staff-note entries, and says either "Chain OK" or which entries were changed. A redacted entry lost its note text to the retention clean-up: its content can no longer be checked, but its place in the log still is. A redaction mark on any other kind of entry counts as a change. |
bin/magento mageme:eu-withdrawal:audit:rebaseline AUDIT_ID | Pro | Starts a new check point at entry AUDIT_ID, after you have looked into a change. The Audit log records it as Chain Re-Baselined. Add --reason "TEXT" to record why. |
What's next
- Cron, queues and email delivery: what stops working when cron doesn't run.
- Installation: the commands that run the queue consumers as permanent processes.