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.

FieldTypeRequiredDefaultConstraintsExample
project_id
GCP project id (overrides connection).
stringNo———
location
GCP location (overrides connection).
stringNo———
job_id
Job id (lowercase, unique in location).
stringYes———
image_uri
Container image URI.
stringYes———
commands
Container commands as JSON array.
arrayNo—array of string—
entrypoint
Container entrypoint override.
stringNo———
task_count
Number of tasks.
numberNo1≥ 1—
machine_type
VM machine type (e.g. e2-standard-4).
stringNo———
cpu_milli
CPU per task in milli-cores.
numberNo—≥ 1—
memory_mib
Memory per task in MiB.
numberNo—≥ 1—
env
Environment variables as JSON object.
objectNo———

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "task_count": 1
}

Output

One shape.

result

FieldTypeExample
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.