Create Job
cloud_batch.create_job
ActionGoogle Cloudconnection required
Calls Cloud Batch POST /locations/{l}/jobs?job_id=.
Create a Cloud Batch job that runs a container across N tasks.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- OAuth 2.0
- Providers
- Google Cloud Batch
- Secret shape
- {"client_id", "client_secret", "refresh_token"}
- Config it needs
- project_id, location
- Resolved by
- config.connection_id, else node.connection_id
Configuration
11 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
project_id GCP project id (overrides connection). | string | No | — | — | — |
location GCP location (overrides connection). | string | No | — | — | — |
job_id Job id (lowercase, unique in location). | string | Yes | — | — | — |
image_uri Container image URI. | string | Yes | — | — | — |
commands Container commands as JSON array. | array | No | — | array of string | — |
entrypoint Container entrypoint override. | string | No | — | — | — |
task_count Number of tasks. | number | No | 1 | ≥ 1 | — |
machine_type VM machine type (e.g. e2-standard-4). | string | No | — | — | — |
cpu_milli CPU per task in milli-cores. | number | No | — | ≥ 1 | — |
memory_mib Memory per task in MiB. | number | No | — | ≥ 1 | — |
env Environment variables as JSON object. | object | No | — | — | — |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"task_count": 1
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
name | string | — |
job_id | string | — |
uid | string | — |
state | string | — |
{
"job_id": "",
"name": "",
"state": "",
"uid": ""
}Related Google Cloud Batch nodes
See Create Job run in a workflow.
In a technical demo we add the Google Cloud Batch connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.