所有 Batch 代码示例

使用集合让一切井井有条 根据您的偏好保存内容并对其进行分类。

This page contains code samples for Batch. To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser.

Create and submit a basic container job

Create and submit a sample Batch job that runs a simple command specified as a container image. After you submit the job, Batch automatically queues, schedules, and executes the job on Compute Engine VMs.

View in documentation

Create and submit a basic script job

Create and submit a sample Batch job that runs a simple command specified as a script. After you submit the job, Batch automatically queues, schedules, and executes the job on Compute Engine VMs.

View in documentation

Delete a job

Trigger the deletion of a Batch job.

View in documentation

Describe a job

View details about a Batch job.

View in documentation

List jobs

List your Batch jobs from a specific location. Note: a job's location might differ from where that job runs.

View in documentation