Published October 21, 2026
How to Monitor AWS EventBridge Scheduled Lambda
EventBridge invokes a target on a schedule. The target is usually Lambda, sometimes an ECS task. A disabled rule, a wrong role, or a timeout shows up as a CloudWatch metric. It does not send mail. Lambda's log group stays empty when the invoke never reached the function.
This is the difference between a rule and EventBridge Scheduler, the six-field expression translated into the five-field check CronNudge stores, and a handler that pings only after the work succeeds. The same fetch without AWS is on the Node docs page. The standard-library ping is on the Python docs page. The cron fields below are from the EventBridge and EventBridge Scheduler schedule docs.
Rules and Scheduler are different resources
EventBridge rules take a schedule expression and targets. Lambda is invoked as events.amazonaws.com, so the function's resource policy has to allow that principal. There is no timezone field. The expression is UTC.
EventBridge Scheduler is a separate API: an expression, an optional ScheduleExpressionTimezone (IANA, default UTC), an execution role, and one target. Scheduler assumes the role and calls the target. America/New_York evaluates the fields in local time, including daylight-saving shifts. A rule cannot do that. Copying a Scheduler expression onto a rule moves the hour.
Both are ENABLED or DISABLED. Disabled means zero invokes and no Lambda log, because Lambda was not called. Both accept rate(value unit) and cron(...). Scheduler also accepts one-shot at(yyyy-mm-ddThh:mm:ss). Pause the check after that single fire, or the next period alerts. A missed invoke is the same shape as a Vercel Cron route: silence is invisible unless the handler pings.
Six fields, a question mark, and Sunday as 1
cron(minutes hours day-of-month month day-of-week year)
Minutes 0–59, hours 0–23, day-of-month 1–31, month 1–12 or JAN–DEC, day-of-week 1–7 or SUN–SAT, year 1970–2199. The extra field is the year. There is no seconds field.
One of day-of-month and day-of-week must be ?. cron(* * * * * *) is rejected. ? adds no condition in that field. Every day at 03:17 UTC is cron(17 3 * * ? *).
On EventBridge, 1 is Sunday, 2 is Monday, and 7 is Saturday. AWS describes 3#2 as the second Tuesday, because 3 is the third day of their week. CronNudge uses standard cron: Sunday is 0 or 7, Monday is 1. The cron tool uses that parser. ?, L, W, and # do not parse, so the AWS string cannot be pasted in as the check.
MON is Monday on both sides. The digit is not. AWS 2 is Monday. Standard 2 is Tuesday.
| AWS day | Meaning | Standard day |
|---|---|---|
| 1 or SUN | Sunday | 0 or 7 or SUN |
| 2 or MON | Monday | 1 or MON |
| 3 or TUE | Tuesday | 2 or TUE |
| 4 or WED | Wednesday | 3 or WED |
| 5 or THU | Thursday | 4 or THU |
| 6 or FRI | Friday | 5 or FRI |
| 7 or SAT | Saturday | 6 or SAT |
L, W, and # have no CronNudge equivalent. Use a plain expression on the check. The last-day workaround is on cron expression examples. Drop a year of *. A fixed year is one shot, and a repeating check would expect the ping again next year.
rate is a count plus minute/minutes, hour/hours, or day/days. Value 1 is singular (rate(1 hour)). Larger values are plural (rate(5 minutes)). rate(1 hours) is rejected. The rate starts at creation. rate(1 day) is every 24 hours from then, not midnight UTC. One minute (rate(1 minute), cron(0/1 * * * ? *)) needs Pro. Free starts at 5 minutes.
Map the expression onto the check
Replace ? with * in the five-field expression, drop the year, and shift a numeric day-of-week down by one (AWS 1 becomes 0). Timezone is UTC for a rule, or ScheduleExpressionTimezone for Scheduler. These rows are UTC.
| AWS | Meaning | CronNudge |
|---|---|---|
cron(17 3 * * ? *) |
03:17 every day | cron 17 3 * * * |
cron(0 9 ? * MON *) |
09:00 Monday | cron 0 9 * * MON |
cron(0 9 ? * 2 *) |
09:00 Monday (2 is Monday) | cron 0 9 * * 1 |
cron(0 9 ? * 2-6 *) |
09:00 Monday through Friday | cron 0 9 * * 1-5 |
cron(0 8 1 * ? *) |
08:00 on the 1st | cron 0 8 1 * * |
cron(0/15 * * * ? *) |
every 15 minutes, on the clock | cron */15 * * * * |
rate(1 hour) |
every hour from creation | interval, 1 hour |
rate(5 minutes) |
every 5 minutes from creation | interval, 5 minutes |
0/15 is the same instants as */15. Use an interval for rate(), because 0 * * * * sits on the hour and a rate counts from creation. CronNudge then counts from each success ping. Grace covers the skew. The form lists 5 minutes, 15 minutes, 30 minutes, 1 hour, 6 hours, 1 day, and 1 week. The API accepts any whole number of seconds from the plan minimum through 31 days, so rate(10 minutes) is 600 seconds. A Scheduler zone of America/New_York keeps those five fields in that zone. The UTC row is an hour off for half the year.
Failures that never reach the handler
Lambda logs an error only if the function started.
- Disabled.
aws events describe-ruleandaws scheduler get-scheduleshowDISABLED. The console toggle is that field. - Rule resource policy. Without
lambda:InvokeFunctionforevents.amazonaws.com,FailedInvocationsincreases and no log stream opens. - Scheduler role.
RoleArnneedslambda:InvokeFunction, orecs:RunTaskplusiam:PassRolefor ECS. The target never starts. A dead-letter queue stores the failed delivery and still does not email you. - Rejected expression. A bad
?, stars in both day fields, orrate(1 hours)means the previous expression is still live. Read the resource after deploy. - Two retry clocks. A rule's Lambda invoke is asynchronous: a throw or timeout is retried twice, then sent to a function DLQ or on-failure destination if you set one. Scheduler retries the invoke call only. A permission error never reaches Lambda's retries.
The timeout defaults to 3 seconds and caps at 15 minutes. A timeout kills the ping and counts as an error, so Lambda retries. Set the timeout to the work plus at least 5 seconds, and keep the ping itself to a couple of seconds. The attempt that returns is the one that should ping. Make that second run safe.
Ping after the handler succeeds
Store https://cronnudge.com/ping/<check-id> as CRONNUDGE_URL. GET, POST, and HEAD all count. The response is text/plain ok with Cache-Control: no-store. The ping id is not the badge id, and the badge stays off until you opt in.
Ping after the work. Cap it at 3 seconds and swallow a network error so the ping cannot fail an invocation that already finished. The check still alerts after grace. AbortSignal.timeout is on the Node.js 18, 20, and 22 runtimes.
export async function handler() {
await doTheWork();
const url = process.env.CRONNUDGE_URL;
if (!url) return;
try {
await fetch(url, { method: "POST", signal: AbortSignal.timeout(3000) });
} catch {
// The work succeeded. A missing ping alerts after grace.
}
}
Python uses the standard library. urlopen sends GET. OSError covers a timeout and a refused connection.
import os
import urllib.request
def handler(event, context):
do_the_work()
url = os.environ.get("CRONNUDGE_URL")
if not url:
return {"ok": True}
try:
urllib.request.urlopen(url, timeout=3).read()
except OSError:
return {"ok": True}
return {"ok": True}
A ping before the work reports success when the work throws. A fetch you do not await can be frozen on return. An Idempotency-Key header stores a retried POST as a replay. Bodies are capped at 8 KB.
Optional /fail
/start and /fail sit on the same ping id. /fail alerts immediately. A disabled rule, a denied role, or a timeout before the request never calls it, so the missing success ping is the backstop: one alert down, one on recovery. Stuck runs are in assertions, runs, and agents.
export async function handler() {
const url = process.env.CRONNUDGE_URL;
try {
await doTheWork();
} catch (error) {
if (url) {
try {
await fetch(url + "/fail", { method: "POST", signal: AbortSignal.timeout(3000) });
} catch {
// Rethrow below so Lambda records the error and can retry.
}
}
throw error;
}
if (!url) return;
try {
await fetch(url, { method: "POST", signal: AbortSignal.timeout(3000) });
} catch {
// Work succeeded. Grace covers a missed ping.
}
}
Rethrow. An error you swallow is a successful invoke, and /fail is the only signal left. A later retry that succeeds pings the success URL, and the check recovers.
ECS
Without ecs:RunTask and iam:PassRole the container never starts. Ping from the command after a zero exit, and do not let curl replace that exit:
/usr/local/bin/export.sh || exit $?
curl -fsS --max-time 3 --output /dev/null "$CRONNUDGE_URL" || true
The schedule cannot see the container's exit code. The ping has to come from the container.
Grace
Use the table's expression and timezone. 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 runtime. A few-second daily job fits 15 minutes. Ten minutes of work needs 1 hour. */15 * * * * fits Free. Every minute needs Pro.
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. One check per schedule.
FAQ
Does EventBridge email me when an invoke fails?
No. A rule records FailedInvocations. A schedule can store the delivery in a dead-letter queue. Lambda logs a line only when the function started.
Why did a Monday AWS cron alert on Sunday?
Sunday is 1 and Monday is 2 on EventBridge. Monday is 1 and Sunday is 0 or 7 on CronNudge. cron(0 9 ? * 2 *) is Monday. Pasting 2 into the check makes Tuesday. Use MON, or subtract one.
Do rules and Scheduler share a timezone?
Rules are UTC. Scheduler defaults to UTC and takes an IANA name on ScheduleExpressionTimezone. The check uses the zone on the live resource.
How do I map rate()?
Use an interval of the same length. rate(1 hour) is the 1 hour period. A rate counts from creation. 0 * * * * is aligned to the hour, which is a different set of instants.
Lambda has no new logs. Where is the failure?
The function was not invoked. Read the state, FailedInvocations, the schedule role, and the resource policy for events.amazonaws.com. The check alerts after grace.
What if the timeout hits before the ping? The runtime stops, the ping does not run, and an async invoke is retried twice. Set the timeout longer than the work plus the ping, or grace expires and the check alerts.
The schedule fires on AWS's clock, into the role and resource policy the last deploy left behind. The ping is how you hear about invocations that never reach the handler. Create the check, or read how to monitor cron jobs for the same pattern in a shell, in Python, and in Node. The same gap on Google Cloud is Cloud Scheduler and Cloud Run jobs. The same gap on Azure Functions is timer triggers.