OpenAISoftware Engineer · OnsiteCodemia practiceIdempotency Keys for a Retried Job Creation Endpoint
Clients of an API that creates fine-tuning or batch jobs retry on timeouts, which sometimes creates duplicate jobs and double charges. Implement server-side idempotency keys so a retry with the same key and body returns the original response, a retry with a different body is rejected, and a concurrent retry does not run the work twice.
Hard
Software Engineering Fundamentals