Code RoomRetry amplification across layers
HardPrep Room Coding #1741

Retry amplification across layers

Code reviewCode quality & reviewSenior–Staff~30 min

Review this Python layered-retry across a call chain.

What a strong answer looks like

Separate real bugs from style. Rank issues by severity, point at the root cause rather than the symptom, and suggest a concrete fix, specific and kind.

0:00 of about 30 min
Mark a line and say what kind of problem it is.0 findings
1def get_price(item):
2 for _ in range(3):
3 try:
4 return pricing_client.fetch(item) # also retries 3x internally
5 except TransientError:
6 continue
7 raise PricingUnavailable()
8 
9def checkout(cart):
10 return [get_price(i) for i in cart.items] # called by an endpoint that retries 3x
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.