Monitor a Node or Python script
Facts about the platform below come from research checked October 21, 2026. The ping URLs are CronNudge’s. A script that exits 0 can still have done nothing. These wrappers report start, success, and failure. Add a count if an empty success should alert.
# Node
const url = process.env.CRONNUDGE_URL;
await fetch(url + "/start", { method: "POST" });
try {
const rows = await run();
await fetch(url + "?count=" + rows, { method: "POST" });
} catch (error) {
await fetch(url + "/fail", { method: "POST" });
throw error;
}
# Python
import os, urllib.request
url = os.environ["CRONNUDGE_URL"]
urllib.request.urlopen(url + "/start", timeout=10).read()
try:
rows = main()
except Exception:
urllib.request.urlopen(url + "/fail", timeout=10).read()
raise
else:
urllib.request.urlopen(url + "?count=" + str(rows), timeout=10).read()- Set an assertion such as “count must be greater than 0” on the check if an empty run should page you. Free includes that on 3 checks. It does not change the 10-check Free limit.
- Timeouts on the HTTP call keep a slow CronNudge response from hanging the script. If the ping never lands, the check still goes late.
- Do not print the URL in logs.
Longer guide: BullMQ, node-cron, and Agenda