Salar Saeedi

Product management · Analysis

A batch AI job needs item-by-item status

Give long-running AI jobs useful progress, traceable item results and the ability to retry failed inputs individually.

Salar Saeedi2 min read
Three-stage illustration — A batch AI job needs item-by-item status

A catalog manager requests new descriptions for an entire collection. By the time they return, most products have drafts and a small group timed out. One global Failed badge makes it hard to know which work is usable.

Get the customer out of the waiting screen

OpenAI’s Batch API processes requests asynchronously. In the product, acknowledge the accepted submission, show the number of inputs, and give the operator a stable link to return. Use a synchronous route when interaction with the answer is the central task.

Source · OpenAI · Batch API

Match each result to its original item

OpenAI documents that results may arrive in an order different from the input file and identifies requests through custom_id. Keep your product’s item ID associated with it. Show which results are ready for review and which need action before publication.

Source · OpenAI · Batch API

Retry a failed subset

A provider job can expire with completed results still available. Carry successful work forward, attach error details to affected items and offer a retry for that subset. During retry, watch for an input the operator has changed since the first run.

Source · OpenAI · Batch API

What to take away

Test an expired run with some drafts ready, an edited original item and an operator who reloads the page during retry.

References

Related work in the portfolio