Batch API: job with 446 inline image requests SUCCEEDED but batches.get returns no dest/inlinedResponses (results lost)
维护者通常 1 天内回复
@Venkaiahbabuneelam 已经在做这个了。
开始于 2026年10月12日。
评估
调研方向
Start by reading the batch retrieval path used by client.batches.get and compare its handling of the v1beta response with the raw REST body described here. Check how batch destinations and inline responses are parsed, and look for related tests covering batches.get. Done means a succeeded job returns accessible results or reports a clear retrieval error when results are missing.
由索引模型根据 Issue 内容生成。
描述
Environment
- google-genai 2.28.0
- Python 3.12.15
- macOS 27.0.1 (arm64)
Describe the bug
A Batch API job with 446 inline requests to gemini-3-pro-image (image output,
2K, 9:16) finished server-side, but its results can't be retrieved.
- Job: batches/m887ve3h1flytwqwubpkogmtx2ngm5lytfus
- Created 2026-10-11 15:43 UTC; batches.list shows BATCH_STATE_SUCCEEDED, ended 15:50 UTC.
- client.batches.get(name=...) returns a job where state is None and dest is None,
so the SDK raises AttributeError ('NoneType' object has no attribute 'name'). - The raw REST GET on v1beta returns only {"name": "...", "done": true} (77 bytes),
with no metadata, response or inlinedResponses. - v1alpha and v1 return 503 UNAVAILABLE intermittently, and the same 77-byte body otherwise.
- I retried every ~90 s for 30+ minutes on all three versions with the same result.
- No output file appears in the Files API.
A job of 126 inline requests on the same project and model, built the same way,
works normally. My guess is that the inline response payload (~4 GB of images)
is too large to be returned by the operation GET.
Expected behavior
Either the results can be retrieved (inline or via an output file), or creation
is rejected / the job fails with a clear size-limit error before images are
generated and billed.
Steps to reproduce
- Create a batch with ~450 InlinedRequest items for gemini-3-pro-image with
response_modalities=["IMAGE"] and image_config(aspect_ratio="9:16", image_size="2K"). - Wait for BATCH_STATE_SUCCEEDED in batches.list.
- Call client.batches.get(name=job.name): state and dest come back None.
Impact
446 images (~USD 30 at batch pricing) were billed and never delivered.
- 主要语言
- Python
- 星标
- 4k
- 派生
- 1k
- 平均合并
- 1 天 7 小时
- 30 天内合并 PR
- 82
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
googleapis/python-genai 的其他 Issue
-
priority: p2 type: bug
难度 2/5 1-3 小时 新手友好度 66/100
googleapis/python-genai#3122 ·
维护者通常 1 天内回复
-
FunctionDeclaration.from_callable drops enum and properties from Optional[...] parameters可能已有人在做 @Venkaiahbabuneelam 于 1 天前认领。 未关闭priority: p2 type: bug
难度 2/5 1-3 小时 新手友好度 67/100
googleapis/python-genai#3105 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Curated history keeps half a user turn when the model turn is invalid可能已有人在做 @Venkaiahbabuneelam 于 9 天前认领。 未关闭priority: p2 type: bug
难度 2/5 1-3 小时 新手友好度 62/100
googleapis/python-genai#3051 · 3 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
[Bug]: Unsubscripted typing.List and typing.Dict crash convert_if_exist_pydantic_model in AFC可能已有人在做 @Venkaiahbabuneelam 于 9 天前认领。 未关闭priority: p2 type: bug
难度 2/5 1-3 小时 新手友好度 82/100
googleapis/python-genai#3044 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Name collision in google.genai.interactions: triggers.Interaction shadows response model Interaction in static type checkers可能已有人在做 @Venkaiahbabuneelam 于 16 天前认领。 未关闭priority: p2 type: bug
难度 2/5 1-3 小时 新手友好度 78/100
googleapis/python-genai#3013 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 googleapis/python-genai 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
onyx-dot-app/onyx#16016 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
black --check exits 0 and prints All done when a multi file run is interrupted可能已有人在做 @jiteshgulati 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 2 天内回复
-
Non-positive worker counts wait for results without starting workers可能已有人在做 @IlyaKhalafi 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复