• STATUS
  • ALERT
  • LOGS
  • HUMAN

How to verify cron job heartbeats with your AI

Connect Better Stack to your AI client to monitor background task health. Your agent can then audit heartbeat logs to catch silent failures.

Ask AI about this page

Short answer

Can my AI check if my cron jobs are running?

Yes. Your AI uses the Better Stack connection to pull a list of recent heartbeats and identify any that haven't checked in. You'll get a clear view of which tasks are active and which have stalled.

The results of your audit.

Where your heartbeat data lands.

The AI processes the heartbeat logs to give you clear answers on task health.

STATUS

Health reports

The AI reviews the heartbeat list to tell you which tasks are active and which are dead. You get a clear summary of your current background job status.

ALERT

Failure detection

Your agent identifies heartbeats that missed their expected window. It flags these specific gaps so you know exactly what broke.

LOGS

Activity audits

The AI pulls recent heartbeat history to help you trace when a task last succeeded. This helps you pinpoint the exact moment a cron job stopped working.

HUMAN

Manual fixes

The AI identifies the problem, but you still need to jump into your code or server to fix the actual task logic. It provides the context, not the repair.

The workflow

What your AI does when the heartbeat data arrives.

The AI acts as an automated monitor that watches your Better Stack heartbeats for you.

  1. Fetch heartbeat logs

    The AI pulls the latest heartbeat records from your Better Stack account to see the current state of your tasks.

    list_heartbeats
  2. Identify missing signals

    It compares the expected frequency of your cron jobs against the actual heartbeat timestamps it just retrieved.

    list_heartbeats
  3. Summarize failures

    The agent groups all the missing or late heartbeats into a readable report for you.

    list_heartbeats
  4. Flag for review

    Your AI presents the specific task names that are currently failing so you can decide how to respond.

    list_heartbeats

Try it

Copy these to start.

Use these prompts to begin monitoring your tasks.

Starting points

These are opening lines to get you moving. Swap out the task names with your actual Better Stack heartbeat names.

Better Stack Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_QAa4ho1S8q5tWsBBJcqMpbW32eNjsNQvGSQMv2ng/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Better Stack capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "better-stack-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_QAa4ho1S8q5tWsBBJcqMpbW32eNjsNQvGSQMv2ng/mcp"
    }
  }
}
Copy into chat04
  • List all my recent heartbeats from Better Stack.

  • Are any of my cron job heartbeats missing right now?

  • Check the status of the 'database-backup' heartbeat.

  • Show me a summary of all heartbeat failures from the last hour.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Better Stack once, then ask.

Just link your account once. Your credentials stay encrypted, and you can immediately start asking your AI about your task health.

Connect Better Stack to your AI

FAQ

How this task behaves.

  • 01

    Can the AI fix a broken cron job?

    No. The AI can only see the heartbeat data. You have to fix the code or the server yourself.

  • 02

    Can the AI create new heartbeats in Better Stack?

    No. This connection is for reading heartbeat data to monitor status. It cannot create or modify heartbeats.

  • 03

    How often does the AI check the heartbeats?

    The AI only checks when you ask it to. It does not run on a continuous loop unless you prompt it to do so.

  • 04

    Does the AI see my Better Stack API keys?

    No. Your keys are handled securely by Vinkius and are never exposed to the AI model.

  • 05

    Can the AI delete old heartbeat logs?

    No. The available tools only allow the AI to list and read heartbeat data.

  • More questions about Better Stack? The Connector page answers them. See everything the Better Stack Connector can do

Connect Better Stack to Claude, Cursor, ChatGPT & more