Published October 21, 2026
How to Monitor Cloud Scheduler and Cloud Run
Cloud Scheduler can record a successful attempt while the Cloud Run job never finishes. The attempt is an HTTP call. For a Cloud Run job that call is jobs.run, which creates an execution and returns an operation. The container's exit is a later status on the execution. A paused scheduler job, a target that never answers, and a task that dies before your command finishes all look different in the logs, and none of them sends you a message.
This page is the unix-cron schedule, the time zone, the retry config, the attempt deadline, HTTP and Pub/Sub targets, and the Cloud Run task timeout and execution status those targets do not replace. The ping goes at the end of the container, after the work succeeds. A failed ping does not fail the task. Facts below are from the Cloud Scheduler and Cloud Run docs as of October 2026.
The same gap on AWS is EventBridge scheduled Lambda. A Node scheduler in your own process is BullMQ, node-cron, and Agenda.
A Cloud Functions for Firebase scheduled function does not ask you to create that job yourself. Deploy creates a Cloud Scheduler job for the function. What that job is named, and what a missed run looks like, is in monitoring Firebase scheduled functions.
Two products, two clocks
Scheduler decides when to call a target. Cloud Run decides whether the tasks in an execution finish. The clocks are not the same number.
| Clock | What it bounds | Default |
|---|---|---|
Scheduler attemptDeadline |
How long Scheduler waits for the HTTP target to acknowledge | 3 minutes for HTTP. Allowed range 15 seconds to 30 minutes. Ignored for Pub/Sub. |
| Cloud Run task timeout | How long one task attempt may run | 10 minutes. Up to 168 hours. 1 hour when the task uses GPUs. |
Scheduler retryCount |
Retries of a failed Scheduler attempt | 0. The maximum is 5. |
Cloud Run maxRetries |
Restarts of a failed task | 3. An integer from 0 to 10. 0 means the task runs once. |
There is no timeout on the execution as a whole. The execution is done when its tasks are done. Scheduler's attempt ends when the HTTP response arrives, not when those tasks exit. A task that runs for 20 minutes is a Cloud Run timeout question. It is not, by itself, an attemptDeadline question, as long as jobs.run was acknowledged in time.
Unix-cron and the time zone
A Cloud Scheduler schedule is five unix-cron fields:
minute hour day-of-month month day-of-week
Minute 0–59, hour 0–23, day of month 1–31, month 1–12 or JAN–DEC, day of week 0–6 or SUN–SAT. Sunday is also 7. 0 12 * * * is 12:00. There is no seconds field. L is not supported. Day of month and day of week are an inclusive OR when both are restricted. If either one is *, only the other field applies. 0 0 1 * SAT runs on the first of the month and on Saturdays.
The time zone is a tz database name. The default is UTC. The API's note for UTC is the string utc. The console field is Timezone, and the gcloud flag is --time-zone. The schedule is wall-clock time in that zone. The docs say daylight saving time can cause jobs to run or not run unexpectedly, and that a time which occurs twice might show execution anomalies. They recommend UTC when the cadence has to be exact. What other schedulers do on those mornings is in cron jobs and daylight saving time.
Paste the same five fields into the check, and set the check's timezone to the job's zone. Compare the next runs on the cron tool. Groc, the English-like alternative (every 48 hours, 1st friday of quarter 9:00), is not a five-field expression. It is set with gcloud or the API, not pasted into the check.
One documented catch-up is narrow. If you disable the Cloud Scheduler API while a job is scheduled and later re-enable it, a job that failed to run in the interim runs immediately, rather than waiting for the next cron time. A job you paused does not run. PAUSED means the user paused it. DISABLED means the system disabled it after an error. You cannot set DISABLED yourself.
Retry config and the attempt deadline
An HTTP target is acknowledged by a response in the range 200–299. No response, or a deadline that expires first, is a failed attempt. The request is cancelled and the attempt is DEADLINE_EXCEEDED. Scheduler then follows RetryConfig.
retryCount defaults to 0, and so does maxRetryDuration. With both at 0, a failed attempt is not retried. The next cron time still runs. Setting retryCount to 0 does not skip future schedules. Values above 5 are not allowed. minBackoffDuration defaults to 5 seconds, maxBackoffDuration to 1 hour, and maxDoublings to 5. The gap starts at the minimum, doubles maxDoublings times, then grows up to the maximum.
While an attempt is still outstanding, the next scheduled runs wait. The troubleshooting page says those later executions are skipped until the current one finishes or times out. Find type.googleapis.com/google.cloud.scheduler.logging.AttemptStarted and the matching AttemptFinished. A missing AttemptFinished, or one that lands after the next cron time, is that stall. Scheduler does not run two attempts of the same job at once. The handler should still be safe to run twice. The docs note that, rarely, more than one request can be in flight.
Pub/Sub targets ignore attemptDeadline. The target publishes a message to a topic in the same project as the job. The message needs non-empty data or at least one attribute. Scheduler's success at that target is the publish. The subscriber is a different process. The ping belongs there, after the subscriber finishes the work, not in the scheduler job.
App Engine HTTP is a third target. The Cloud Run path below is the HTTP target.
Cloud Run jobs triggered by Scheduler
The execute-on-a-schedule page points an HTTP Scheduler job at:
POST https://run.googleapis.com/v2/projects/PROJECT_ID/locations/REGION/jobs/JOB:run
That method triggers a new execution. If the call succeeds, the body is an operation, not the task result. The console path is the job's Triggers tab, Add Scheduler Trigger, a unix-cron frequency, a timezone, and a service account that has permission to invoke the job. The Scheduler job's region does not have to match the Cloud Run region. The page's Terraform example sends an OAuth token for that service account. The token's account has to be allowed to invoke the job. Without that permission the HTTP attempt fails, no execution is created, and the container never starts.
A job is one or more tasks, up to 10,000, and taskCount defaults to 1. Each task is one container. The task's index is CLOUD_RUN_TASK_INDEX. The count is CLOUD_RUN_TASK_COUNT. The task timeout defaults to 10 minutes and applies to each attempt, including retries. maxRetries defaults to 3 and is per task. If any task exceeds its retries, that task is failed, and the execution is failed after Cloud Run has tried the tasks.
completionStatus on the execution reference is the status you read back:
| Status | Meaning |
|---|---|
EXECUTION_PENDING |
Waiting for resources to be provisioned. |
EXECUTION_RUNNING |
The execution is running. |
EXECUTION_SUCCEEDED |
The execution succeeded. |
EXECUTION_FAILED |
The execution failed. |
EXECUTION_CANCELLED |
The user cancelled it. |
Those values are on the execution when you get it. Cancelling an execution stops it and leaves the cancelled status, including its logs. Nothing in that list is an email.
What Google records, and what it does not send
Scheduler publishes a log at the start of each execution and a log at the end. The job page has the last attempt. Cloud Run has the execution status and the execution logs. The troubleshooting and viewing-logs pages send you to Logs Explorer. They do not describe a mail, chat, or paging message that goes out because an attempt failed, because a run was skipped, or because a task never reached EXECUTION_SUCCEEDED.
A heartbeat is that message. It covers a run that never starts: the scheduler job is paused or disabled, the previous attempt is still open, the invoker is denied, or jobs.run never returns 2xx. It also covers a run that starts and never finishes: the execution stays EXECUTION_PENDING or EXECUTION_RUNNING, the task hits its timeout, the container exits before the ping, or retries end in EXECUTION_FAILED. Scheduler can already be done, because jobs.run returned, while any of those is still true.
Ping after the container succeeds
The success URL is https://cronnudge.com/ping/<check-id>. GET, POST, and HEAD all count. Keep CRONNUDGE_URL in the job's environment, not in the image. One task should ping, once, after the work. A taskCount above 1 that pings from every container stays green if any task finishes. For a one-task job the container is the whole execution.
fetch rejects when the network fails or AbortSignal.timeout aborts. It does not reject on an HTTP error status. The helper catches the rejection and ignores the status, so neither one sets a non-zero exit. Cloud Run retries a failed task, up to maxRetries. A ping error must not be that failure.
async function ping(path = "") {
const raw = process.env.CRONNUDGE_URL;
if (!raw) return;
try {
await fetch(raw + path, {
method: "POST",
signal: AbortSignal.timeout(10_000),
});
} catch {
// The task already finished its work. Grace covers a missed ping.
}
}
async function main() {
await exportRows();
await ping();
}
main().catch((error) => {
console.error(error);
process.exitCode = 1;
});
exportRows rejecting skips the ping and sets the exit code. The task fails, Cloud Run can retry it, and a later attempt that succeeds still pings. The ping's own failure does not set the exit code.
A shell entrypoint is the same order. The command's non-zero status exits before curl. curl's failure is discarded:
/usr/local/bin/export.sh || exit $?
curl -fsS -m 10 --retry 3 "$CRONNUDGE_URL" || true
-f treats an HTTP error as a curl failure, -sS stays quiet unless curl itself fails, -m 10 caps the wait, and --retry 3 retries transport failures. || true keeps that failure from becoming the container's exit status. The ping is still missed, and the check alerts after grace.
Optional /fail
/fail marks the check down and alerts immediately when it was not already down. /start records a start and is not a success. A task that never starts never calls either URL. Max runtime, with run tracking on, is in assertions, runs, and agents. Because jobs.run returns before the container exits, a second execution can be created while the first is still running. A second /start while the first run is open is the overlap alert.
async function main() {
try {
await ping("/start");
await exportRows();
await ping();
} catch (error) {
await ping("/fail");
console.error(error);
process.exitCode = 1;
}
}
main();
ping does not throw, so the only error that sets the exit code is exportRows. Use this or the success-only main, not both.
Schedule and grace
The check's cron is the five fields on the Scheduler job, and the timezone is the job's time zone. An hourly job in America/New_York is that expression with that zone, not UTC, unless the job's zone is UTC.
Default grace is 5 minutes. The form offers none, 1 minute, 5 minutes, 15 minutes, and 1 hour. The API accepts 0 seconds through 7 days. Grace runs until the success ping, so it includes the container's runtime, not the jobs.run round trip. A task whose timeout is the default 10 minutes does not fit a 5 minute grace. Use 1 hour, or lower the timeout if the work is actually short. Scheduler's 3 minute attempt deadline is the HTTP acknowledgement. It is not the grace.
Free is 10 checks, with email and one Slack or Discord channel. Pro is $12 a month for 100 checks, a 1 minute minimum, signed webhooks, and the API. There is no yearly price. Details are on pricing. Every minute needs Pro. Free's shortest interval is 5 minutes.
FAQ
Does Cloud Scheduler email me when an attempt fails? No. It writes a log at the start and at the end of the attempt, and the job keeps the last status. The troubleshooting page sends you to those logs. It does not send a message. Cloud Run's execution status is the same shape: it is there when you open the execution.
Does a successful Scheduler attempt mean the Cloud Run job finished?
No. The HTTP target for a Cloud Run job is jobs.run. A 2xx response means the call was acknowledged and an operation was returned. The execution can still be EXECUTION_PENDING, EXECUTION_RUNNING, or EXECUTION_FAILED after Scheduler has finished the attempt.
What is the attempt deadline relative to the task timeout? The attempt deadline is how long Scheduler waits for the HTTP target. For HTTP it defaults to 3 minutes and must be from 15 seconds to 30 minutes. Pub/Sub ignores it. The Cloud Run task timeout is how long one task attempt may run. It defaults to 10 minutes, and the maximum is 168 hours, or 1 hour for a GPU task. There is no timeout on the execution as a whole.
Which timezone goes on the check? The Scheduler job's time zone. The default is UTC. Copy the five fields as they are. Sunday is 0 or 7 on both sides. A groc schedule is not a cron expression the check can store.
What if the previous Scheduler attempt is still running?
Later cron times for that job wait until the attempt finishes or the deadline hits. Scheduler does not run two outstanding attempts of the same job. Once jobs.run has returned, that Scheduler attempt is over, and the next cron can create another Cloud Run execution while the first container is still going.
Does a failed ping fail the Cloud Run task?
Not with the samples above. The Node helper catches the fetch rejection, and fetch does not reject on an HTTP error status. The shell line ends curl with || true. A missed ping still alerts after grace. A thrown error from the work sets a non-zero exit, and Cloud Run can retry that task up to maxRetries.
Scheduler calls the target, or it does not. The container finishes, or it does not. The logs tell you about the attempts you go looking for. The ping tells you about the run that never called home. Create the check, or read the five fields on the cron tool. Related: how to monitor cron jobs, crontab not running, cron expression examples, BullMQ, node-cron, and Agenda when the schedule is a Node process, not Cloud Scheduler, and Azure Functions timer triggers when the schedule is NCRONTAB on a function app.