Skip to main content

Cron, queues and email delivery

The short answer​

Several things the module does happen in the background, not while the customer waits: sending the receipt, sending again a digital-content waiver confirmation that could not be sent at checkout, the daily overdue refund digest and the clean-ups. Magento cron runs them. If cron doesn't run, customers still submit withdrawal requests, but they don't get their receipt.

How it works​

Background jobs​

The free module runs four background jobs through Magento cron:

  • every minute, it sends receipts that are due for another try;
  • every minute, it sends digital-content waiver confirmations that are due for another try;
  • every hour, it deletes unused waiver records left over from checkouts that never became orders;
  • every day at 07:00, it sends the overdue refund digest, if you turned it on in 2. Reimbursement Overdue Digest. It reminds you of a request again after 23 hours or more.

Pro adds its own jobs:

  • Magic Link: once a day, it deletes links that expired, were revoked or were used more than 30 days ago;
  • Audit: once a day, it removes the IP address, browser information and customer account from Audit entries older than Audit Row Retention (days), and the text of staff notes that earlier versions copied into those entries. It does nothing while Enable Audit Log is No;
  • Seal Photos: every hour, it deletes photos that were never attached to a request, and once a day, it deletes the photos of approved, denied or cancelled requests 6 years after their last change;
  • Auto-Approve: every minute, one pass over the requests that wait for a decision.

The times are in the timezone of your Default Config scope. A daily job runs on the first cron run after its time if that run comes within 15 minutes. If cron starts later, Magento skips the job until the next day. Every job with its exact schedule is in Cron jobs, queues and commands.

Queue consumers​

The module also uses two queue consumers: one sends receipts, the other sends again the waiver confirmations that could not be sent when the order was placed. A queue consumer is a background process that picks up waiting messages and handles them. By default, Magento cron starts them. If your host turns that off, the two consumers must run as permanent processes instead. The commands are on Installation.

How the receipt gets sent​

  1. When the customer submits, the module freezes the receipt content and puts the receipt in the queue. If the submission confirmation email is on, the customer gets it straight away: it doesn't wait for the queue.
  2. The receipt consumer sends the receipt.
  3. If sending fails, the module tries again after 1 minute, 5 minutes and 30 minutes. Delivery Retry Attempts in 6. Receipt Email (Durable Medium — Art. 11a(4)) counts the retries after the first send: with the default of 3, the receipt is sent up to four times.
  4. If the last try fails, the module emails an alert to the address in DLQ Alert Recipient, or to your store's General Contact address of the request's store view. It sends at most one alert every 15 minutes. A waiver confirmation that can't be sent gets its own alert, with the order number, on the same terms.
  5. Your staff can send the receipt again with Resend Receipt on the request page. See Resending a receipt. On a denied or cancelled request the button reports success, but no email is sent.

When the module is switched off​

Enable Module = No turns off the withdrawal function on the storefront. It doesn't stop the background jobs and the queue consumers: receipt retries, waiver confirmation retries and the overdue digest keep going. See Updating, disabling and removing.

Tools for your developer​

Audit (Pro) has two command-line tools: one checks that the audit log is unchanged, the other starts a new check point after an incident you have looked into. They don't run on their own. See Verifying Pro artefacts.

What this means for you​

  • Before you go live, submit a test request and check that the receipt arrives within a few minutes. If it does, cron and the receipt consumer run.
  • If the receipt never arrives and no alert comes either, cron or the consumers are not running. Ask your developer or host to check Magento cron.
  • If you get an alert, the consumer ran but the email could not be sent. Check your store's email sending, then use Resend Receipt.
  • The Pro clean-ups also need cron. Without it, old personal data stays longer than your settings say. See Privacy and personal data.
  • Switching the module off doesn't silence the overdue digest. Turn the digest off in its own group if you don't want it.

What's next​

Last reviewed November 28, 2026