Ant Group interview question

How to prevent retries from performing same operation twice?