Node.js Cron Monitoring
Keep your Node scheduler. Monitor up to 50 jobs for $9.99/month.
Running 21–50 Node.js jobs yourself? PingCron Pro adds independent completion monitoring for one account owner, with email, Slack, Discord, and webhook alerts. Keep node-cron, BullMQ, or your existing scheduler.
Free: 5 monitors, 7-day history · No credit card · Shared access requires Team
30 Node jobs, one owner: $9.99/month
PingCron Pro covers up to 50 monitors for the same monthly price. For 30 jobs and one dashboard user, Healthchecks Business is $20/month and Cronitor Business is $65/month ($2 × 30 + $5). Published USD monthly rates checked October 17, 2026; taxes, discounts, and add-ons excluded.
Those plans are not equivalent. Healthchecks includes shared projects and more free jobs; Cronitor includes 12-month retention and native SMS/on-call features. PingCron Pro fits one owner who needs completion check-ins and email, Slack, Discord, or webhook alerts. Its alert destinations are configured for the account owner.
Choose Pro — $9.99/monthCreate your account, then continue to checkout. Start with five free monitors if you want to verify a job first.
Compare the details: Cronitor costs and features · Healthchecks plans, annual pricing, and history. Sources: Cronitor pricing · Healthchecks pricing.
A scheduler runs your job. A completion monitor checks for its signal.
node-cron provides scheduling and lifecycle events. BullMQ provides persistent queueing, retries, and worker events. PingCron does not replace those tools: it watches for an expected completion check-in outside the worker process.
If work never starts, hangs, fails, or completes without delivering its check-in, the expected receipt can be missing. PingCron alerts after the configured schedule and grace period; that absence does not identify the cause or prove incorrect output.
Setup
Monitor a five-minute node-cron job after successful work.
Node.js 22+ and node-cron v4. Adapt an existing scheduled job; do not add a second schedule for the same workload.
Create one monitor for this job, match */5 * * * * in UTC, and set grace for normal runtime, queueing delay, and reporting. Store the private success URL as PINGCRON_URL in the actual worker environment. This example sends success only: failed work is detected through a missing expected check-in.
Real-world examples
Adapt your existing node-cron module — replace syncOrders with real work
import cron from 'node-cron';
import { syncOrders } from './sync-orders.js';
// Node.js 22+; supply the monitor's private success URL in this process.
async function reportSuccess() {
try {
const url = new URL(process.env.PINGCRON_URL);
if (url.origin !== 'https://api.pingcron.io' ||
url.username || url.password || url.search || url.hash ||
!/^\/ping\/[a-zA-Z0-9-]+$/.test(url.pathname)) {
throw new Error('Invalid monitoring configuration');
}
const response = await fetch(url, {
method: 'POST', redirect: 'error',
signal: AbortSignal.timeout(10_000),
});
const accepted = response.ok;
await response.body?.cancel();
if (!accepted) throw new Error('Check-in rejected');
} catch {
// Never log the private URL or response body.
console.warn('Work completed; PingCron check-in not confirmed');
}
}
export async function runMonitoredJob(work) {
const result = await work(); // Reject if required work or validation fails.
await reportSuccess(); // Reporting cannot change the workload result.
return result;
}
// Preserve node-cron's execution:failed event and the workload result.
cron.schedule('*/5 * * * *', () => runMonitoredJob(syncOrders), {
timezone: 'UTC', noOverlap: true,
});node-cron finished, but your work is still running?
execution:finished observes the callback's returned work. If the callback starts an asynchronous operation without returning its promise, the scheduler can finish before that operation does. noOverlap cannot protect work detached this way.
Detached work
cron.schedule('* * * * * *', () => {
void syncOrders().catch(reportWorkError);
}, { noOverlap: true });Return the work's promise
cron.schedule('* * * * * *',
() => syncOrders(),
{ noOverlap: true },
);These snippets use application functions as placeholders. The error handler must not throw or reject. Required child work and validation must also belong to the returned promise chain. The monitoring example above already returns its promise correctly.
Run the five-case diagnostic locally
In two synthetic runs with Node.js 24.14.1 and node-cron 4.6.0, detached 2.3-second work reached three concurrent workloads on a one-second schedule. Returning the same work kept concurrency at one and skipped intervening occurrences. The lab also compares a short successful job, one rejection followed by later success, and a pending promise.
Download and unzip the fixture, run npm ci --ignore-scripts --no-audit --no-fund, then npm run lab. It takes roughly 35 to 40 seconds and needs no PingCron account. The ZIP includes source, a lockfile, instructions and both recorded event traces.
This tests callback usage, not a node-cron bug or production performance. Counts depend on timing; a busy or suspended process can fail the assertions. Pending work is explicitly released after observation for cleanup. Stopping the schedule does not cancel work already running. A finished callback does not independently prove correct business output. Prepared by PingCron with AI assistance.
Verify the Node job, the receipt, and the alert
- Use the deployed worker: supply PINGCRON_URL through its secret configuration. Verify the Node version, module imports, scheduler options, and outbound HTTPS. A shell export may not reach a service or container. Missing or invalid configuration logs a warning after work; it does not establish monitoring.
- Define completion: syncOrders must resolve only after required writes are committed and output checks pass, and reject on failure. Do not report success from finally, process startup, enqueue, or a separate timer.
- Check a real scheduled run: verify the output, then the monitor’s first successful check-in. Let the next automatic run complete too. One manual request proves only that the endpoint accepted a request.
- Verify the alert destination: save the destination, send the labeled test, and confirm receipt. Set up and verify an alert destination. Test missed-run and recovery behavior on an isolated test monitor.
The helper bounds its HTTP request to ten seconds, disables redirects, accepts only 2xx, and cancels the response body. It never sends a failure signal because reporting failed. It does not limit the workload’s runtime or make CPU-blocking work responsive; handle job timeouts and shutdown in your application.
Pro’s 30-day history supports daily success, failure, and start summaries. The individual receipt list shows the latest 100 receipts; it is not a searchable 30-day application-log archive. Daily reported outcomes do not measure missed runs or output correctness.
References: node-cron scheduling and overlap options · BullMQ job schedulers and production cadence · Node fetch.
FAQ
Related monitoring guides
Verify one Node job, then cover the rest.
Confirm a real scheduled completion and your alert destination. Choose Pro when its capacity and features match the jobs you operate.
Monitor one Node job freeFree: 5 monitors, 7-day history · No credit card · Shared access requires Team