Cron Job Monitoring for Python scripts

Cron monitoring in Python

Oh Dear users can add cron job monitoring to any existing Python script. When you create a cronjob monitor in your Oh Dear account, you're given a unique pingback URL that should be called every time a cronjob completes.

In this guide, we'll cover how you can implement that in your existing Python code.

Cron job monitoring in generic Python

You can use the requests library in Python to make an outgoing HTTPs call to our Ping URL.

import requests


Note: make sure your script stops executing on error conditions, so the requests.get function isn't called even if the script has failed.

Was this page helpful to you? Feel free to reach out via or on Twitter via @OhDearApp if you have any other questions. We'd love to help!