How to monitor AWS EventBridge scheduled Lambda jobs
EventBridge schedules fail quietly: a disabled rule, a missing permission or a Lambda error and nothing tells you. How to find the cause and alert on a missed run.
· 7 min read · By the Spot Downtime team
Running a job on a schedule with EventBridge and Lambda is a common replacement for a cron server. It is also easy to get wrong in a way nobody notices: the rule is disabled, the target lost its permission, or the function errors on every run. Nothing pages you, because from AWS's side nothing is broken.
This post covers how scheduled invocations fail, where to look when a job didn't run, and how to add an alert that fires when a run is missing, not only when one throws an error.
Two ways to schedule: rules and Scheduler
There are two services that fire on a schedule. EventBridge rules with a schedule expression are the older one. EventBridge Scheduler is newer and adds time zone support, one-off schedules and per-schedule retry and dead-letter settings. Both accept rate() and cron() expressions.
rate(15 minutes)
cron(0 2 * * ? *) # every day at 02:00 (rules: always UTC)
cron(30 8 ? * MON-FRI *) # weekdays at 08:30The cron format has six fields (minutes, hours, day of month, month, day of week, year), not the five of Unix cron. You must use ? in either the day-of-month or the day-of-week field. Rules always evaluate in UTC, so a job meant for 02:00 local time moves by an hour twice a year if you convert by hand. Scheduler lets you set a time zone on the schedule. See cron timezone and DST pitfalls.
Why a scheduled run didn't happen
- The rule or schedule is disabled. Rules have an enabled or disabled state and Scheduler schedules have one too. Infrastructure changes sometimes flip it. Check with
aws events describe-rule --name my-ruleand look atState. - The target can't be invoked. For rules, the Lambda function needs a resource-based permission allowing
events.amazonaws.comto invoke it. For Scheduler, the schedule's execution role needslambda:InvokeFunction. If you recreated the function or role, that link may be gone. - The expression doesn't mean what you think. Wrong field order, the UTC offset, or a
rate(1 hours)with the wrong singular or plural form (1 takes the singular unit, such asrate(1 hour)). - Wrong account or Region. The rule exists in one Region and the function in another, or you are looking at the wrong one in the console.
- The function ran and failed. This is the most common case, and it is a different problem from the schedule not firing.
Find out what actually happened
Start from the target. In CloudWatch, look at the function's Invocations and Errors metrics around the expected time. Invocations at the right time with Errors means the schedule works and the code fails; check the function's log group. No invocations means the problem is the schedule, permissions or Region.
For a rule, the AWS/Events namespace has TriggeredRules, Invocations and FailedInvocations per rule name. Scheduler publishes similar metrics under AWS/Scheduler, including target errors and invocations sent to the dead-letter queue. Add alarms on those, but treat them as a second line: they tell you the trigger failed, not that the work finished.
Retries, duplicates and silent drops
Scheduled events are delivered at least once, so the same run can occasionally happen twice. Write jobs to be safe to repeat: key work by the schedule time, use idempotent writes, or take a lock. Overlap is also possible when a run lasts longer than the interval; see cron job overlapping runs.
When Lambda is invoked asynchronously, as EventBridge does for rules, a failed invocation is retried (by default up to two more times) and then discarded unless you configured a dead-letter queue or an on-failure destination. An event that fails all attempts simply disappears. Configure a destination for anything you care about, and remember that Lambda's maximum run time is 15 minutes, so a long job needs a different runner such as a container task.
Alert on the run that never arrives
Error alarms only fire when something runs and reports a failure. They stay quiet when the rule is disabled, the permission is gone or the function was throttled out. A heartbeat monitor inverts this: the function calls a URL when it finishes, and you are alerted when the call doesn't arrive on time. That catches every cause above with one check.
Create a heartbeat monitor in Spot Downtime with an interval matching the schedule, and store its ping URL as a Lambda environment variable. Ping at the end of a successful run and call the /fail URL from the error path, so a failure alerts immediately instead of after the deadline. Node.js 18 and later runtimes include fetch:
const HEARTBEAT_URL = process.env.HEARTBEAT_URL;
async function ping(suffix = "") {
try {
await fetch(HEARTBEAT_URL + suffix, { signal: AbortSignal.timeout(5000) });
} catch (err) {
console.error("heartbeat ping failed", err);
}
}
export const handler = async () => {
try {
await runJob();
await ping();
} catch (err) {
await ping("/fail");
throw err; // keep the error so Lambda retries and logs it
}
};Wrapping the ping in its own try/catch means a monitoring hiccup never fails the real job. In Python, the same idea works with urllib.request.urlopen(url, timeout=5), which avoids adding a dependency.
Set the grace period longer than the function's timeout plus a margin, since a run that starts late or is retried will report late. Choosing the interval and grace period goes through the numbers, and how to set up a heartbeat monitor shows the ping and fail URLs. The cron job monitoring page lists what a heartbeat supports.
Quick checklist
Related reading
Get new guides by email
Practical posts on monitoring, outages, error fixes and on-call, when they're published. No spam.
Keep reading
- Cron jobs · Heartbeats · TroubleshootingCron jobs that succeed but do nothing: catching silent failuresYour cron job exits 0 and every dashboard is green, yet the backup is empty or the sync did nothing. Learn the common causes and how to monitor results, not just runs.November 3, 2026 · 6 min read
- Cron jobs · TroubleshootingGitLab CI scheduled pipeline not running: causes and fixesWhy a GitLab pipeline schedule never starts, runs late or creates no jobs: owner permissions, rules, timezone, inactive schedules. Plus how to alert on a missed run.November 18, 2026 · 6 min read