Skip to main content
schedule · gcp

Scheduling Cloud Run Service

example schedules
6
schedulable
yes

Can ZopNight schedule Cloud Run Service?

Cloud Run schedules change one number: minimum instances drops to 0 at night. The start does not put the previous value back, so re-apply it from your deploy pipeline. The service never stops serving, so overnight requests still work and still bill. The always-on instance floor, billed even while idle, disappears during the window.

How the stop works

Stop mechanism for Cloud Run Service on GCP.
Field Value
Behavioursets minimum instances to 0 so the service scales to zero when idle; the previous value is not restored on resume

Example schedules

  • 0 8 * * 1-5 — Business Hours Start: Start at 8:00 AM on weekdays
  • 0 18 * * 1-5 — Business Hours Stop: Stop at 6:00 PM on weekdays
  • 0 22 * * * — Night Shutdown: Stop at 10:00 PM every day
  • 0 6 * * 1-5 — Morning Startup: Start at 6:00 AM on weekdays
  • 0 20 * * 5 — Weekend Shutdown: Stop at 8:00 PM on Friday
  • 0 7 * * 1 — Weekend Startup: Start at 7:00 AM on Monday

The service stays up the entire time

Nothing here resembles a stop. The URL keeps serving at 3am; a request that arrives spins up an instance, gets handled, and bills for its duration. What the schedule removes is the minimum-instances floor, the warm instances Cloud Run holds ready around the clock when min is set above 0. Those idle instances bill continuously at the idle rate, and for a service with min-instances 2 that floor often exceeds the cost of all actual traffic combined.

Why the floor exists, and why it can sleep

Teams set minimum instances to kill cold starts during business hours. That is a legitimate latency decision. The same floor at 3am protects the latency of nobody. The schedule cancels the nighttime cost, but the morning start does not restore the minimum: ZopNight leaves the field at 0, so re-apply your daytime floor from your deploy pipeline if the first morning request must land warm.

Cold starts move to the night shift

With the floor at 0, an overnight request pays the cold-start penalty of a second or several, depending on the container. For an internal tool that is a fine trade. For a service with a strict 24/7 latency SLO it is not, and that service was never a candidate; the schedule’s audience is the large middle whose traffic is diurnal but whose floor is constant.

The floor does not come back on its own

ZopNight does not save the minimum-instances value at the evening drop, and the start leaves the field untouched, so after the first scheduled night the service stays at a minimum of 0. Teams that want a warm daytime floor should set it again from their release pipeline before peak traffic.

Sizing the win

An idle instance-hour costs a known rate per vCPU and GB. Min 2 across a 13-hour nightly window is 26 idle instance-hours a day, times every service with a floor; across a microservice fleet, the floors quietly add up to a mid-size VM’s bill.

See it fire on your bill.

Connect an account read-only in about five minutes. Findings start with the first scan.

472 rule families across 353 resource types on 22 platforms. Every threshold, metric, and IAM action is documented on these pages before you grant anything.

472 rule families documented
353 resource types covered
read-only default access level
Multi-cloud automation· Production-ready in 30 min· SOC 2 · ISO 27001· 20–60% off the bill, first month· 4 platforms · 1 console· Multi-cloud automation· Production-ready in 30 min· SOC 2 · ISO 27001· 20–60% off the bill, first month· 4 platforms · 1 console·