Live data from Hacker News

Ask HN: Batch Processing with OpenAI

news.ycombinator.com

11–12 of 12 posts

Re: Ask HN: Batch Processing with OpenAI

#12
post #7

You could set up a collection in memory/SQL with a Status + UpdatedUtc column and poll the collection for incomplete items each loop until all are in the desired state. Your state machine could be as simple as: New, Processing, Failed, Succeeded. Outer loop will query the collection every ~second for items that are New or Failed and retry them. Items that are stuck Processing for more than X seconds should be forced…

not op, but this is a neat idea, thanks.
Post reply on HN