After a batch is processed, some reviews may be completed and others failed. In AI Review Moderation for Magento 2 1.0.16, the retry job considers each failed row in turn. It checks the number of failed attempts and the time since the queue entry was updated.
Note the attempt limit and delay in your test environment
In Review AI → General, choose Testing in Environment and turn on Use Mock Batch API and Enable Audit Logs. In Retry and Error Handling, check Max Retry Attempts and Retry Interval (minutes). The trial used a limit of 3 and a delay of 10 minutes. kowal_review_ai_retry_failed_reviews checks failed rows with attempts < 3 and a sufficiently old updated_at. Review Moderation AI documentation.
Follow three reviews from the same batch
The local simulation used the original mock provider and result processor. Two test replies were deliberately given an invalid value. Review 701 was processed, and 702 and 703 went to failed. After a simulated delay, only 702 went to pending. The batch was then marked archived.
| Review ID | After batch processing | Attempts | First check | After the delay | Retry event |
|---|---|---|---|---|---|
701 · Valid result | completed | 0 | completed | completed | — |
702 · Failure below the limit | failed | 1 | failed | pending | retry_scheduled |
703 · Failure at the limit | failed | 3 | failed | failed | — |
Confirm the change using the review ID
Review 702 received one retry_scheduled entry. The job cleared batch_id and custom_id and left the count at 1. At the next run, 702 was still pending for a new batch. Look up review_id in the audit. The default job checks the queue every 30 minutes. After the delay, look up the last run in cron_schedule as well.
Queue results also help with measuring moderation costs in a pilot.
