Heartbeats: monitor scheduled jobs
Heartbeats tell ORB that a scheduled task or background job ran. Create a heartbeat for each job you need to supervise, then have the job call its unique heartbeat URL when it reaches the point you want to verify. If ORB does not receive a ping on time, it marks the heartbeat down and can notify your team.
Create a heartbeat
- Open Heartbeats and choose Create heartbeat.
- Enter a clear name for the job.
- Set Expect a heartbeat every to the job's normal schedule.
- Set a Grace period to allow for ordinary scheduling or runtime variation.
- In Advanced settings, select notification handlers and optionally assign a project or configure email reports.
- Save the heartbeat and copy its secret URL from the detail page.
Send a ping from a job
Make the request at the point that represents a successful run. For example, place it after the job completes its essential work. A shell job can call the URL with a standard HTTP client such as curl; keep the actual ORB URL in a secret or environment variable rather than committing it to source control.
For a task with distinct start and completion signals, use the heartbeat behavior and URL options shown in the ORB interface or API documentation. Do not treat a start ping as proof that the job completed successfully.
Choose timing
Set the expected interval slightly longer than the normal schedule if jobs can start late. Set the grace period to cover typical delays without hiding a real failure for too long. ORB alerts after the expected window and grace period have elapsed without a ping. Exact timing options may depend on your plan.
Alerts and status pages
Select the notification handlers that should receive heartbeat up/down alerts. Handlers must be configured first under Notification handlers. Heartbeats can also be included on status pages, so teams can communicate the state of scheduled processes alongside website and service health.
Troubleshooting
- Heartbeat is down even though the job ran: Confirm the job called the full current URL, outbound HTTPS requests are allowed, and the ping occurs before the configured deadline.
- Heartbeat is up when the work failed: Move the ping until after the important work succeeds, or review whether the job's success condition is meaningful.
- Alerts arrive too late or too often: Tune the expected interval and grace period to reflect real scheduling behavior, then verify the resulting check history.
- You cannot find a handler: Create and test a notification handler, then return to the heartbeat settings.