⏱️Job monitors

Use our monitors to make sure your cron jobs run on time.

Creating a new job monitor

  1. Click "Job monitors"

  2. Click "Create new monitor"

  3. Enter the relevant details:

    1. Name: This name is only for yourself, to recognize the job in your account

    2. Project: Use this to categorize the job

    3. Timezone: This is the timezone in which the job is expected to run

    4. Schedule: The schedule in which you want the job to be run

    5. Maximum duration: The number of minutes the job is expected to run. This should be at least the minimum duration you expect the job to run

  4. Click "Create job monitor"

Cron schedule expression

# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12)
# │ │ │ │ ┌───────────── day of the week (0 - 6) (Sunday to Saturday)
# │ │ │ │ │
# │ │ │ │ │
# * * * * *

How do monitors work?

Using monitors is very straightforward: just tell us when a cron job has finished, and we'll mark it as such. If we haven't received a pulse in time, we assume it's down, and we'll let you know.

To send out a pulse, add an HTTP request at the end of your cron job. The URL you need to call, can be found on the page of your monitor. It should look like this:

https://cronly.app/api/monitors/pulse/a4f28bca-df99-47bf-a435-c6d8d2c948fd

Examples

Tip: These examples are very basic. There are other ways available, for example with open source packages. We'll be adding more examples soon.

curl "https://api.cronly.app/1.1/cron/pulse?token={token}"
<?php
file_get_contents("https://api.cronly.app/1.1/cron/pulse?token={token}");
import urllib2
try:
    urllib2.urlopen("https://api.cronly.app/1.1/cron/pulse?token={token}")
except Exception:
    pass
var https = require('https');
https.get("https://api.cronly.app/1.1/cron/pulse?token={token}");

Last updated