Batch api requests are getting stuck in pending

Hi,

I’m having a big issue right now where all my batch api requests are getting stuck in pending. This seems to be an on and off again issue that many users have been experiencing over the last year according to my research. I’ve tried switching APIs to a different project and the same thing is happening. I’ve tested in shell the command and it just shows as pending like this below:

~/workspace$ curl “https://generativelanguage.googleapis.com/v1beta/batches/3mttwrhrehgz6n0sjza9s4f6ptg3rtdwlpkm” \

-H “x-goog-api-key: AIzaSyAkmx9ktlvY8D1j08ZngGLzc2SUA71CUTI”

{

“name”: “batches/3mttwrhrehgz6n0sjza9s4f6ptg3rtdwlpkm”,

“metadata”: {

"@type": "type.googleapis.com/google.ai.generativelanguage.v1main.GenerateContentBatch",

"model": "models/gemini-2.5-flash",

"displayName": "FDD Analysis (bucketed) - 1 franchises - 2026-01-07T14:33:53.244Z",

"createTime": "2026-01-07T14:33:53.748912951Z",

"updateTime": "2026-01-07T14:33:53.748912951Z",

"batchStats": {

  "requestCount": "3",

  "pendingRequestCount": "3"

},

"state": "BATCH_STATE_PENDING",

"name": "batches/3mttwrhrehgz6n0sjza9s4f6ptg3rtdwlpkm"

}

}

2 Likes

Hi @Yury_Byalik,

Thanks for your report. We’ve pushed a fix that should resolve the problem. Please check and let us know if the problem persists.

Hey ,

Thanks for the quick fix.

It seems everything is back working to normal again. So if 1 batch gets stuck, does that mean all future batches don’t start processing? Is there any fix for this I should know about that I can implement on my side?

Thank you

Yury