Error in a Magento 2 AI review batch. Which reviews get another attempt?

2 min read

Three paper cards with one held by a clip and another in a sleeve

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.

Three reviews with a limit of 3 and a 10-minute delay
Review IDAfter batch processingAttemptsFirst checkAfter the delayRetry event
701 · Valid resultcompleted0completedcompleted—
702 · Failure below the limitfailed1failedpendingretry_scheduled
703 · Failure at the limitfailed3failedfailed—

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.

Previous Next

KOWAL.BLOG

Choose your language

Available versions open the corresponding page. More languages are being prepared.

English (UK) Français Deutsch Español Italiano Português Nederlands Svenska Dansk Norsk Suomi Lietuvių Latviešu Eesti Čeština Slovenčina Magyar Română Български Ελληνικά Slovenščina Hrvatski Polski English (US)