How do I monitor AdonisJS scheduled tasks with heartbeat check-ins?

Send an asynchronous HTTP POST or GET request to your unique Acumen Logs heartbeat URL at the end of your AdonisJS task's handle() method so failed or skipped runs trigger an alert.

AdonisJS scheduled tasks and Ace commands run in the background without exposing a public HTTP endpoint, meaning standard uptime checks cannot detect when a scheduled job crashes or hangs.

To monitor an AdonisJS task with Acumen Logs Heartbeat Monitoring:

  1. Create a heartbeat monitor: Open Heartbeat in Acumen Logs, set the expected interval (such as hourly or daily), and copy your unique pulse URL.
  2. Ping at the end of handle(): Using fetch or axios, send a POST or GET request to your pulse URL as the final line inside your task's handle() method.
  3. Catch silent failures: If your database query throws an exception or the process exits early, the final ping never fires and Acumen Logs alerts your team via email, Slack, Teams, or webhook.

See full code examples in our guide on heartbeat monitoring in AdonisJS.

Related Guides & Articles

Featured Articles

Catch Website Failures
Before Your Customers

Catch checkout failures, API crashes, and broken user journeys before they cost you trust and money.
Verified check mark
10 monitors for free
Verified check mark
AI test generation
Verified check mark
Real-time alerts
Verified check mark
Public status pages

Trusted by Top-tier product companies

Monitor Your Websites
Get screenshots and diagnostic logs to investigate issues. Video recording is available on Essentials and Pro.
SSL, RDAP, RUM — We Have It
Easily monitor uptime, user journeys, APIs, and more. Our AI integration and clean UI help you get set up fast.
Get Alerts and Insights
Get notified by email, Slack, Microsoft Teams, desktop notifications, or webhooks, depending on your plan and alert settings.