Cloud Run job

gcpWorkergoogle-cloud-run-job

Container that runs a set of tasks to completion and exits.

Provider
gcp
Kind
Worker
Category
Compute
Properties · 4 set by this component
propertytypevaluesrequiredkind defaultthis component
acceleratorenumnone | gpu | asicnonone▸ none
concurrencyinteger—no—inherited
fanoutStrategy · advancedenumnone | push | pull | hybridnononeinherited
fanoutThreshold · advancedinteger—no—inherited
idempotentboolean—nofalseinherited
instancesinteger—no—inherited
managedboolean—nofalse▸ true
maxRetries · component propertyinteger—no3inherited
maxTaskCount · component propertyinteger—no10000inherited
rateControl · advancedenumnone | fixed | aimdnonone▸ none
schedulestring—no—inherited
taskCount · component propertyinteger—no1inherited
taskTimeoutSeconds · component propertyinteger—no600inherited
triggerenumqueue | stream | schedule | batch | manualyes—▸ batch
Rules that apply · 3

Every rule whose selector covers this component's kind or its category. Whether a rule fires depends on the design: its properties, its edges and its groups.

push-fanout-without-celebrity-path

Pure push fan-out over a social graph is brutal at the tail: one post from an account with millions of followers becomes millions of cache writes. A follower threshold above which readers merge at read time bounds that write amplification.

  • — all of these hold:
  • — the node's `fanoutStrategy` is "push"
  • — the node's `fanoutThreshold` has no value
  • — the design contains a node of kind graph-database
shared-worker-pool-across-queues

One worker pool consuming several queues lets a slow or poisoned queue starve the others. That is precisely what the design's per-queue isolation requirement forbids.

  • — all of these hold:
  • — the node has more than 1 incoming edge from a queue
  • — the design requirement `isolation.perQueue` is true
stateful-node-without-zone-redundancy

A stateful compute node pinned to exactly one availability zone disappears with that zone, and its state goes with it. Nodes inside a cell are exempt, because there the cell is deliberately single-zone and redundancy comes from the other cells.

  • — all of these hold:
  • — the node's `stateless` is false
  • — the node sits inside exactly 1 availability-zone group
  • — this does not hold:
  • — the node sits inside at least one cell group
Use it in a design
nodes:
  - { id: "cloud-run-job", component: "google-cloud-run-job" }
Other Worker products · 82
SchedulerXalibaba-schedulerxalibabacloudworkerAmazon AppFlowaws-appflowawsworkerAWS B2B Data Interchangeaws-b2b-data-interchangeawsworkerAWS Batchaws-batchawsworkerAWS Glue DataBrewaws-databrewawsworkerAWS DataSyncaws-datasyncawsworkerAWS Deadline Cloudaws-deadline-cloudawsworkerAWS Entity Resolutionaws-entity-resolutionawsworkerAmazon EventBridge Scheduleraws-eventbridge-schedulerawsworkerAWS Fault Injection Serviceaws-fisawsworkerAWS Glue crawleraws-glue-crawlerawsworkerAWS Glue for Ray jobaws-glue-ray-jobawsworkerAWS Application Migration Serviceaws-mgnawsworkerAmazon MSK Connectaws-msk-connectawsworkerAmazon SageMaker AI Training Jobaws-sagemaker-training-jobawsworkerAWS Systems Manageraws-systems-managerawsworkerAWS Thinkbox Deadline 10aws-thinkbox-deadlineawsworkerAWS Glue jobglue-jobawsworkerAzure Automationazure-automationazureworkerAzure Batchazure-batchazureworkerAzure Chaos Studioazure-chaos-studioazureworkerAzure Data Factoryazure-data-factoryazureworkerAzure Data Shareazure-data-shareazureworkerAzure Database Migration Serviceazure-database-migration-serviceazureworkerMicrosoft Entra Connect Syncazure-entra-connect-syncazureworkerMicrosoft Graph Data Connectazure-graph-data-connectazureworkerAzure Storage Moverazure-storage-moverazureworkerAzure Update Managerazure-update-managerazureworkerBrowser Runcloudflare-browser-runcloudflareworkerCloudflare Snippetscloudflare-snippetscloudflareworkerCloudflare Zarazcloudflare-zarazcloudflareworkerAirbyteairbyteworkerAirflow DAGairflow-dagworkerChaos Meshchaos-meshworkerChunkrchunkrworkerContainer workercontainer-workerworkerCron jobcron-jobworkerDaytonadaytonaworkerE2Be2bworkerEmbulkembulkworker
and 42 more → Worker page
Source
# yaml-language-server: $schema=../../schema/component.schema.json
# Cloud Run job: a container that runs its tasks and exits rather than serving requests
# ("Create jobs"). Unset fields default to 1 task (10,000 maximum), a 10-minute task timeout and
# 3 retries, and tasks start in parallel as quickly as possible. Cloud Run is regional and replicated
# across the zones of its region ("Cloud Run resource model").
schemaVersion: "1"
type: "component"
id: "google-cloud-run-job"
kind: "worker"
provider: "gcp"
docs: "https://cloud.google.com/run/docs/create-jobs"
defaults:
  managed: true
  trigger: "batch"
  accelerator: "none"
  rateControl: "none"
properties:
  taskCount:
    type: "integer"
    default: 1
  maxTaskCount:
    type: "integer"
    default: 10000
  taskTimeoutSeconds:
    type: "integer"
    default: 600
  maxRetries:
    type: "integer"
    default: 3

The same page as markdown, for an agent: /catalogue/components/google-cloud-run-job.md