ETL Job Monitoring
Know when your scheduled ETL job misses a check-in.
Send a heartbeat after your extract, transform, load, and required checks finish. If the next receipt is missing beyond its grace period, PingCron can queue an alert to your saved destinations.
5 monitors free · Email, Slack, and Discord · No credit card
Monitor completion. Keep your data checks in the pipeline.
Use PingCron for recurring warehouse loads, CRM syncs, imports, or exports that can send an HTTP request after completion. Missing receipts can expose an expectation that was not met, even when the scheduler or host cannot report its own failure.
PingCron does not inspect warehouse rows, measure extraction progress, or automatically validate freshness, schema, or row counts. Your pipeline must perform the checks you need. A receipt confirms a signal arrived; a missing receipt does not identify why.
Setup
Report success after the load and your checks finish.
Create a monitor for one recurring pipeline. Match its schedule and timezone, allow grace for runtime and delay, and supply its private success URL as PINGCRON_URL to the scheduled process.
Replace /opt/etl/run-and-validate.sh with your existing pipeline command. It must wait until the required load is committed or durably completed and your own validation passes, then exit zero. Exit nonzero on failure. Submitting a remote job or starting background work is not completion.
Real-world examples
1. Save as /opt/etl/monitored-pipeline.sh and replace the pipeline command
#!/bin/sh
# Replace with your real command; it must exit nonzero on failure.
/opt/etl/run-and-validate.sh
job_status=$?
if [ "$job_status" -eq 0 ]; then
if [ -z "${PINGCRON_URL:-}" ]; then
printf '%s\n' 'Heartbeat not configured; check PINGCRON_URL' >&2
elif http_status=$(curl -q --silent --output /dev/null \
--write-out '%{http_code}' --connect-timeout 3 --max-time 10 \
-- "$PINGCRON_URL"); then
case "$http_status" in
2??) ;;
*) printf '%s\n' 'Work completed, but heartbeat delivery failed' >&2 ;;
esac
else
printf '%s\n' 'Work completed, but heartbeat delivery failed' >&2
fi
fi
exit "$job_status"2. User crontab: one hourly entry, on one physical line
0 * * * * /bin/sh /opt/etl/monitored-pipeline.sh
Verify the pipeline’s completion boundary.
- Define success for this job. Wait for extraction, transformation, destination load, and required checks. If freshness, expected records, or reconciliation matters, implement those checks in your pipeline and return nonzero when they fail. A zero exit alone cannot establish data quality.
- Use the deployed environment. Set the working directory, dependencies, and permissions under the scheduler’s account. Supply the private URL through its secret configuration or a protected environment file your launcher loads. An interactive shell export is not sufficient.
- Match the expectation. The example runs hourly in the scheduler’s timezone. Match that in PingCron and allow grace for normal runtime and delay. Use separate monitors for independent pipelines; one pipeline’s success could otherwise hide another’s failure.
- Check a real run. Inspect the destination and the first successful heartbeat, then verify a later automatic run. Confirm receipt of a labeled alert-destination test. Set up and verify an alert destination. Use an isolated test monitor to check missed-run detection.
The wrapper preserves the pipeline’s exit status. Its success-only request accepts 2xx responses, disables redirects and curl’s default configuration, and has a 3-second connection limit and 10-second total limit. Reporting failure produces a generic warning; it does not retry the load or limit the pipeline’s runtime.
| Observed result | Pipeline and heartbeat | Next check |
|---|---|---|
| Required validation fails | Exit nonzero; the wrapper sends no success heartbeat. | Inspect the failed validation and destination state before using your pipeline’s retry policy. |
| Remote job is only submitted | Wait for terminal completion and required validation before returning success. | Read the remote job’s outcome; an accepted request is not a completed load. |
| Load and validation succeed; reporting fails | Preserve exit zero and inspect the heartbeat warning. | Check configuration, network access and receipts; do not rerun the completed load just to send a heartbeat. |
Integrating inside Python? Use the Python heartbeat setup. For start/failure reporting and fixed schedules, see the monitoring guide.
When broader pipeline coverage justifies Pro
Free includes 5 monitors, 7-day receipt history, and email, Slack, and Discord alerts. Pro is $9.99/month for up to 50 monitors, 30-day receipt history, and custom outbound webhooks for one account owner.
Choose Pro when you need more than five independently monitored pipelines, longer retained history, or webhooks. Stay on Free if it fits. Shared account access starts on Team. These plans do not add data-quality validation.
Choose Pro — $9.99/monthCreate your account, then continue to checkout for the paid subscription.
References: curl request options · Shell exit status.
FAQ
Related monitoring guides
Verify one pipeline before expanding coverage.
Confirm a real scheduled completion and your alert destination. Add separate monitors as you cover more pipelines, then choose the plan that fits your needs.
Monitor one ETL job free5 monitors free · Email, Slack, and Discord · No credit card