Developer finds 6% silent failure rate in Anthropic Batch API after 1,842 jobs

A developer running an AI-powered mock interview platform discovered that 112 out of 1,842 jobs submitted via Anthropic's Batch API over 30 days returned no usable result, a 6.1% silent failure rate. The failures included 71 errors, 24 expired requests, and 17 responses that appeared successful but contained truncated JSON due to hitting token limits. The root cause was a coding assumption that a batch status of 'ended' meant all requests had succeeded, when it only means Anthropic finished processing — including jobs it abandoned. Results must be evaluated individually by checking each request's result type, as succeeded, errored, expired, and canceled outcomes all require separate handling. Despite the reliability issues, the developer noted the Batch API halved their monthly AI costs from $209 to $104, making it viable for non-urgent, background workloads.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in