Batch 是一项全代管式服务,可让您在自动预配的 Google Cloud 资源上安排、排队和执行批处理作业。
了解详情。
获享 $300 免费赠金开始概念验证
-
体验 Gemini 2.0 Flash Thinking
-
免费使用热门产品(包括 AI API 和 BigQuery)的每月用量
-
不会自动收费,无需承诺
继续探索 20 多种提供“始终免费”用量的产品
使用适用于常见应用场景(包括 AI API、虚拟机、数据仓库等)的 20 多种免费产品。
培训
培训和教程
使用 Workflows 运行 Batch 作业
使用 Workflows 编排 Batch 作业和其他服务,以按您定义的顺序执行。
代码示例
代码示例
示例作业
一组示例作业脚本和容器,其中包含代码示例和分步教程,可帮助您了解如何使用 Batch。
代码示例
代码示例
Cloud 客户端库的所有示例
浏览 Batch 的所有 Cloud 客户端库示例。
代码示例
代码示例
Go 示例
一组使用 Go Cloud 客户端库的示例。
代码示例
代码示例
Java 示例
一组使用 Java 版 Cloud 客户端库的示例。
代码示例
代码示例
Node.js 示例
一组使用 Node.js 版 Cloud 客户端库的示例。
代码示例
代码示例
Python 示例
一组使用 Python 版 Cloud 客户端库的示例。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-12。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-12。"],[[["\u003cp\u003eBatch is a fully managed service for scheduling, queuing, and executing batch processing jobs on automatically provisioned Google Cloud resources.\u003c/p\u003e\n"],["\u003cp\u003eComprehensive documentation is available, including quickstarts, guides for job creation, execution, and troubleshooting, as well as references for gcloud commands and REST APIs.\u003c/p\u003e\n"],["\u003cp\u003eResources such as pricing, quotas and limits, release notes, and locations are easily accessible.\u003c/p\u003e\n"],["\u003cp\u003eBatch jobs can be orchestrated with other services using Workflows, enabling the definition of execution order.\u003c/p\u003e\n"],["\u003cp\u003eNumerous code samples and tutorials, including examples in Go, Java, Node.js, and Python, are provided to help users learn and implement Batch.\u003c/p\u003e\n"]]],[],null,["# Batch documentation\n===================\n\n[Read product documentation](/batch/docs/get-started)\nBatch is a fully managed service\nthat lets you schedule, queue, and execute batch processing jobs\non automatically provisioned Google Cloud resources.\n[Learn more](/batch/docs/overview).\n[Get started for free](https://console.cloud.google.com/freetrial) \n\n#### Start your proof of concept with $300 in free credit\n\n- Get access to Gemini 2.0 Flash Thinking\n- Free monthly usage of popular products, including AI APIs and BigQuery\n- No automatic charges, no commitment \n[View free product offers](/free/docs/free-cloud-features#free-tier) \n\n#### Keep exploring with 20+ always-free products\n\n\nAccess 20+ free products for common use cases, including AI APIs, VMs, data warehouses,\nand more.\n\nDocumentation resources\n-----------------------\n\nFind quickstarts and guides, review key references, and get help with common issues. \nformat_list_numbered\n\n### Guides\n\n-\n\n [Get started](/batch/docs/get-started)\n\n-\n\n [Job creation and execution](/batch/docs/create-run-job)\n\n-\n\n [Create and run a basic job](/batch/docs/create-run-basic-job)\n\n-\n\n [Analyze a job using logs](/batch/docs/analyze-job-using-logs)\n\n-\n\n [Troubleshooting](/batch/docs/troubleshooting)\n\nfind_in_page\n\n### Reference\n\n-\n\n [gcloud commands](/sdk/gcloud/reference/batch)\n\n-\n\n [REST API](/batch/docs/reference/rest)\n\n-\n\n [Cloud Client Libraries for C++](/cpp/docs/reference/batch/latest)\n\n-\n\n [Cloud Client Libraries for Go](/go/docs/reference/cloud.google.com/go/batch/latest/apiv1)\n\n-\n\n [Cloud Client Libraries for Java](/java/docs/reference/google-cloud-batch/latest/overview)\n\n-\n\n [Cloud Client Libraries for Node.js](/nodejs/docs/reference/batch/latest)\n\n-\n\n [Cloud Client Libraries for Python](/python/docs/reference/batch/latest)\n\n-\n\n [Cloud Client Libraries for .NET](/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1)\n\ninfo\n\n### Resources\n\n-\n\n [Pricing](/batch/pricing)\n\n-\n\n [Quotas and limits](/batch/quotas)\n\n-\n\n [Release notes](/batch/docs/release-notes)\n\n-\n\n [Locations](/batch/docs/locations)\n\nRelated resources\n-----------------\n\nTraining and tutorials \nCode samples \nExplore self-paced training, use cases, reference architectures, and code samples with examples of how to use and connect Google Cloud services. Training \nTraining and tutorials\n\n### Run a Batch job using Workflows\n\n\nOrchestrate Batch jobs and other services to execute in an order that you define by using Workflows.\n\n\n[Learn more](/workflows/docs/tutorials/batch-and-workflows) \nCode sample \nCode Samples\n\n### Example jobs\n\n\nA set of example job scripts and containers with code samples and step-by-step tutorials to learn how to use Batch.\n\n\n[Open GitHub\narrow_forward](https://github.com/GoogleCloudPlatform/batch-samples) \nCode sample \nCode Samples\n\n### All samples for Cloud Client Libraries\n\n\nBrowse all Cloud Client Libraries samples for Batch.\n\n\n[Get started](/batch/docs/samples) \nCode sample \nCode Samples\n\n### Go samples\n\n\nA set of samples using the Cloud Client Libraries for Go.\n\n\n[Open GitHub\narrow_forward](https://github.com/GoogleCloudPlatform/golang-samples/tree/main/batch) \nCode sample \nCode Samples\n\n### Java samples\n\n\nA set of samples using the Cloud Client Libraries for Java.\n\n\n[Open GitHub\narrow_forward](https://github.com/GoogleCloudPlatform/java-docs-samples/tree/main/batch/snippets/src/main/java) \nCode sample \nCode Samples\n\n### Node.js samples\n\n\nA set of samples using the Cloud Client Libraries for Node.js.\n\n\n[Open GitHub\narrow_forward](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/tree/main/batch) \nCode sample \nCode Samples\n\n### Python samples\n\n\nA set of samples using the Cloud Client Libraries for Python.\n\n\n[Open GitHub\narrow_forward](https://github.com/GoogleCloudPlatform/python-docs-samples/tree/main/batch)\n\nRelated videos\n--------------"]]