๐ŸŒ
Google
docs.cloud.google.com โ€บ cloud run โ€บ create jobs
Create jobs | Cloud Run | Google Cloud Documentation
This page describes how to create and update Cloud Run jobs from an existing container image. Unlike a Cloud Run service, which listens for and serves requests, a Cloud Run job only runs its tasks and exits when finished.
๐ŸŒ
Google Cloud
cloud.google.com โ€บ run
Cloud Run | Google Cloud
Let your jobs run for up to 24 hours. Send traffic to a VPC network directly and connect with all the services you have running on the VPC. ... Build your web app using your favorite stack, access your SQL database, and render dynamic HTML pages. Cloud Run also gives you the ability to scale to zero when there are no requests coming to your website.
๐ŸŒ
Medium
medium.com โ€บ @markwkiehl โ€บ google-cloud-run-jobs-scheduler-22a4e9252cf0
Google Cloud Run Jobs & Scheduler | by Mark W Kiehl | Medium
May 2, 2025 - Unlike a Cloud Run service, which listens for and serves requests, Cloud Run Jobs only runs its tasks and exits when finished. After you create or update a job, you can execute the job as a one-off, on a schedule, or as part of a workflow. You can structure a job as a single task or as multiple, independent tasks (up to 10,000 tasks) that can be executed in parallel.
๐ŸŒ
Google
codelabs.developers.google.com โ€บ codelabs โ€บ cloud-starting-cloudrun-jobs
Getting started with Cloud Run jobs | Google Codelabs
In this codelab, you will first explore a Node.js application to take screenshots of web pages and store them to Cloud Storage. You will then build a container image for the application, run it as a job on Cloud Run, update the job to process more web pages and run the job on a schedule with Cloud Scheduler.
๐ŸŒ
Reddit
reddit.com โ€บ r/googlecloud โ€บ til. you can't use google cloud run jobs for any production jobs
r/googlecloud on Reddit: TIL. You can't use Google Cloud Run Jobs for any production jobs
December 12, 2023 -

TL;DR: Google Cloud Run Jobs failing silently w/o any logs and also restarts even if `maxRetries: 0`

Today my boss pinged that something weird happening with our script that runs every 15 minutes to collect data from different sources. I was the one who developed it and support it. I was very curious why it's failed as it really simple and whole body of the script is wrapped in try {} catch {} block. Every error produced by the script forwarded to Rollbar, so I should be the one that receive the error first before my boss.

When I opened Rollbar I didn't find any errors, however in the GCP console I found several failed runs. See image below.

When I tried to see the logs it was empty even in Logs Explorer. Only default message `Execution JOB_NAME has failed to complete, 0/1 tasks were a success."`. But based on the records in the database script was running and it was running twice (so it was relaunched, ignoring the fact that I set `maxRetries: 0` for the task)

It all sounds very bad for me, because I prefer to trust GCP for all my production services. However, I found that I'm not the one with this kind of issue -> https://serverfault.com/questions/1113755/gcp-cloud-run-job-fails-without-a-reason

I'll be very happy if someone could point me in the right direction regarding this issue. I don't want to migrate to another cloud provider because of this.

[Update]

Here is what I see in the logs explorer. I have tracing logs. But there is no logs et all, just default error message -> `Execution JOB_NAME has failed to complete, 0/1 tasks were a success."`

[Update 2]

Here is a metrics for the Cloud Run Job. I highlighted with the red box time where an error happened. As you can see memory is ok, but there is a peak in received bytes

[Update 3]

Today we had a call with one of Googlers. We found that it seems to be a general issue for all Cloud Run Jobs in the us-central1 region. It started on Dec 6 2023 (1pm - 5pm PST) . If you see the same issue on your Google Cloud Run Job post relevant info to this thread. We want to figure out what happened.

Top answer
1 of 5
17
Hi there, I wanted to take the time to clear up some stuff here, and hope we can figure out what's going on. My script is wrapped with try {} catch () OOM stops all execution immediately. This isn't unique to Cloud Run, but is a fundamental concept in most modern kernels and hypervisors. Your application gets absolutely no CPU time to execute a single instruction upon OOM because there is literally no physical space in memory for your application to execute, and your try/catch would be irrelevant. As an aside, wrapping an entire execution context in try/catch is generally a very bad engineering practice, and is an immediate indication that proper error handling within the context of each instruction has not been handled. For example, in Node/Javascript, try/catch is synchronous by nature. If you are attempting to throw an error within a different part of the event loop, i.e. an async function somewhere, your outer try/catch will completely fail to catch, and your program would abort with no output. This is one of many ways I can think of off the top of my head this can happen. Only default message Execution JOB_NAME has failed to complete, 0/1 tasks were a success." Can you add some more explicit logging during your programs execution to help trace where it's failing? Ultimately, there's absolutely no way for us to know what your code is doing or how it's operating. By adding some logging lines during general operation (i.e. "fetching from Facebook..." "...done!"), we can at least get a better sense of what's going on. My instinct here is there is some logic funkyness happening, specifically because of the global try/catch, which is often misunderstood as a foolproof mechanism.
2 of 5
5
I never had that situation. Can you tell a bit more about the tasks and what techs you use?
๐ŸŒ
Reddit
reddit.com โ€บ r/googlecloud โ€บ cloud run jobs vs cloud tasks
r/googlecloud on Reddit: Cloud Run Jobs vs Cloud Tasks
June 22, 2022 -

Right now i am evaluating the use of Cloud Tasks or the newly introduced Cloud Run Jobs. I am having a hard time to understand which one to choose and some questions arose during my research. If anybody could chime in, i would be very thankful!

Since Cloud Tasks can execute Cloud Run Containers too, what are the benefits of using Cloud Run Jobs?

One thing i noticed, a job task can only be retried 10 times, not indefinitely like in Cloud Tasks. This seems like an odd limitation, why can't a task be retried indefinitely?

Also it seems not possible to create or execute a job through the Google Cloud Go Library. Calling the API endpoint and attaching the access token myself seems rather tedious. Is it bad practice to create a Cloud Run Job from inside a HTTP handler?

On the other side there is no way to batch enqueue cloud tasks and it is suggested to create a separate injector queue. This seems elegantly solved with Cloud Run Jobs where i can spawn up to 1000 tasks in one job.

I have the feeling the two services overlap in many places and make it confusing to choose. A comparision page similar to this PubSub comparison would be very helpful.

๐ŸŒ
DEV Community
dev.to โ€บ zenika โ€บ cloud-run-jobs-your-parallel-tasks-solution-j05
Cloud run jobs, your parallel tasks solution - DEV Community
June 26, 2023 - We usually need to accelerate our tasks without using a lot of resources. It's now possible on Cloud Run. Jobs is a serverless brand-new feature of Cloud Run that is GA since March 23rd 2023. In this article, I will first compare Cloud run and Cloud Functions (1st gen and 2nd gen), then I will explain how Cloud Run jobs works.
๐ŸŒ
Google
docs.cloud.google.com โ€บ cloud run โ€บ quickstart: create and execute a job in cloud run
Quickstart: Create and execute a job in Cloud Run | Google Cloud Documentation
This page shows you how to create a job in Cloud Run using a sample container, execute the job, and view logs for the job.
Find elsewhere
๐ŸŒ
Google
docs.cloud.google.com โ€บ cloud run โ€บ execute jobs
Execute jobs | Cloud Run | Google Cloud Documentation
You can execute jobs using the Google Cloud console, the Google Cloud CLI, client libraries, or REST API. ... Locate the job you are interested in. Click the job to display the job details page.
๐ŸŒ
GitHub
github.com โ€บ GoogleCloudPlatform โ€บ jobs-demos
GitHub - GoogleCloudPlatform/jobs-demos: Cloud Run Jobs Demos - A collection of samples to show you how and when to run a container to completion without a server ยท GitHub
Cloud Run Jobs allows you to run a container to completion without a server.
Starred by 81 users
Forked by 21 users
Languages ย  Python 49.0% | JavaScript 15.7% | Shell 15.6% | Dockerfile 11.0% | HTML 8.4% | Procfile 0.3%
๐ŸŒ
Reddit
reddit.com โ€บ r/googlecloud โ€บ cloud run jobs - long startup time
r/googlecloud on Reddit: Cloud Run Jobs - Long Startup Time
October 20, 2025 -

I'm running Cloud Run Jobs for geospatial processing tasks and seeing 15-25 second cold starts between when I execute the job and when the job is running. I've instrumented everything to figure out where the time goes, and the math isn't adding up:

What I've measured:

  • Container startup latency: 9.9ms (99th percentile from GCP metrics - essentially instant)

  • Python imports: 1.4s (firestore 0.6s, geopandas 0.5s, osmnx 0.1s, etc)

  • Image size: 400MB compressed (already optimized from 600MB with multi-stage build)

  • Execution creation โ†’ container start: 2-10 seconds (from execution metadata, varies per execution)

So ~1.4 seconds is Python after the container starts. But my actual logs show:

PENDING (5s)  
PENDING (10s)  
PENDING (15s)  
PENDING (20s)  
PENDING (25s)  
RUNNING (30s)  

So there's 20+ seconds unaccounted for somewhere between job submission and container start.

Config:

  • python:3.12-slim base + 50 packages (geopandas, osmnx, pandas, numpy, google-cloud-*)

  • Multi-stage Dockerfile: builder stage installs deps, runtime stage copies venv only

  • Aggressive cleanup: removed test dirs, docs, stripped .so files, pre-compiled bytecode

  • Gen2 execution environment

  • 1 vCPU, 2GB RAM (I have other, higher resource services that exhibit the same behavior)

What I've tried:

  • Reduced image 600MB โ†’ 400MB (multi-stage build, cleanup)

  • Pre-compiled Python bytecode

  • Verified region matching (us-west1 for both)

  • Stripped binaries with `strip --strip-unneeded`

  • Removed all test/doc files

Key question: The execution metadata shows a 20-second gap from job creation to container start. Is this all image pull time? If so, why is 400MB taking 20-25 seconds to pull within the same GCP region?

Or is there other Cloud Run Jobs overhead I'm not accounting for (worker allocation, image verification, etc)?

Should I accept this as normal for Cloud Run Jobs and migrate to Cloud Run Service + job queue instead?

๐ŸŒ
Geshan
geshan.com.np โ€บ blog โ€บ 2025 โ€บ 04 โ€บ cloud-run-jobs
Cloud Run Jobs: A Beginner's Guide to Running Tasks to Completion on a schedule
April 29, 2025 - Cloud Run Jobs are task-oriented, executing a specific piece of work, such as scraping a website, converting a PDF invoice to database records, taking a screenshot, fine-tuning an LLM, or resizing images.
๐ŸŒ
Google Cloud
cloud.google.com โ€บ blog โ€บ products โ€บ serverless โ€บ cloud-run-jobs-and-second-generation-execution-environment-ga
Cloud Run jobs and second-generation execution environment GA | Google Cloud Blog
April 25, 2023 - Introduced in Preview at Google I/O, Cloud Run jobs enable developers to execute long, run-to-completion scripts that do not respond to HTTP requests โ€” all on a serverless platform.
๐ŸŒ
ZipRecruiter
ziprecruiter.com โ€บ all jobs โ€บ cloud run jobs
$54-$84/hr Cloud Run Jobs (NOW HIRING) Jan 2026
Browse 947 CLOUD RUN jobs ($54-$84/hr) from companies with openings that are hiring now. Find job postings near you and 1-click apply!
๐ŸŒ
Google
discuss.google.dev โ€บ google cloud โ€บ compute infrastructure
google cloud run - Compute Infrastructure - Google Developer forums
May 21, 2023 - Can we use google cloud run for running gcloud commands (long running )? i need to add backup and patch related gcloud commands inside the cloud run which i will use to backup multiple vms programmatically what will beโ€ฆ
๐ŸŒ
Google Codelabs
codelabs.developers.google.com โ€บ cloud-run-jobs-and-cloud-scheduler
Triggering Cloud Run Jobs with Cloud Scheduler | Google Codelabs
March 16, 2026 - In this lab, you will create a Cloud Run job and set up a Cloud Scheduler job. You will deploy Cymbal Eats Menu Service using the setup script. You will create a Cloud Run job that makes API calls to Cymbal Eats Menu Service. You will execute the job using Google Cloud CLI and set up a schedule for the job.
๐ŸŒ
mkdev
mkdev.me โ€บ posts โ€บ how-to-use-google-cloud-run-jobs-for-background-tasks
Efficient Background Processing with Google Cloud Run Jobs
March 1, 2025 - Explore how Google's Cloud Run Jobs revolutionizes task handling by allowing jobs to run without constant listening, offering a scalable solution for tasks like video conversion. Discover the seamless integration and execution capabilities in this GA application!