Cronly
Search…
⏱
Job monitors
Use our monitors to make sure your cron jobs run on time.

Creating a new job monitor

  1. 1.
    Click "Job monitors"
  2. 2.
    Click "Create new monitor"
  3. 3.
    Enter the relevant details:
    1. 1.
      Name: This name is only for yourself, to recognize the job in your account
    2. 2.
      Project: Use this to categorize the job
    3. 3.
      Timezone: This is the timezone in which the job is expected to run
    4. 4.
      Schedule: The schedule in which you want the job to be run
    5. 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. 4.
    Click "Create job monitor"

Cron schedule expression

1
# β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ minute (0 - 59)
2
# β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ hour (0 - 23)
3
# β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ day of the month (1 - 31)
4
# β”‚ β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ month (1 - 12)
5
# β”‚ β”‚ β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ day of the week (0 - 6) (Sunday to Saturday)
6
# β”‚ β”‚ β”‚ β”‚ β”‚
7
# β”‚ β”‚ β”‚ β”‚ β”‚
8
# * * * * *
Copied!

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.
1
curl "https://api.cronly.app/1.1/cron/pulse?token={token}"
Copied!
1
<?php
2
file_get_contents("https://api.cronly.app/1.1/cron/pulse?token={token}");
Copied!
1
import urllib2
2
try:
3
urllib2.urlopen("https://api.cronly.app/1.1/cron/pulse?token={token}")
4
except Exception:
5
pass
Copied!
1
var https = require('https');
2
https.get("https://api.cronly.app/1.1/cron/pulse?token={token}");
Copied!