Code AnalysisHard 60s
Retry without idempotency on a non-idempotent path
A network timeout is ambiguous. What does this handler risk?
Starter code
for attempt in range(5):
try:
return api.charge(order) # POST, no idempotency key
except Timeout:
sleep(1)Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.