Cronly
Search…
Basic: Cron jobs / scheduled tasks
Cron job monitors, help you to monitor if cron jobs run successfully and within the specified time frame.

Prerequisites

    At least one active project.
    At least one active trigger.

Creating a monitor

Go to Monitors » Cron jobs » Click Add in the top right.
Select a Project.
Pick a name, that described to monitor. This name is only used within Cronly and doesn't effect implementation.
Select the correct time zone. This is the time zone of the environment the cron job runs.
The schedule works in the same notation Unix based systems run their cron jobs.
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 is also Sunday on some systems)
7
# │ │ │ │ │
8
# │ │ │ │ │
9
# * * * * * <command to execute>
Copied!
The delay in minutes is used by Cronly to determine how long Cronly waits. This should be at least the expected running time of the cron job.
Click Save to add the monitor.

Retrieving the cron job monitor token

Go to Monitors » Cron jobs The token is listed here inside the column Name and can be used with the API.
Go to Monitors » Cron jobs » Click Details next to the monitor. The token is listed here and can be used with the API.

Cron job monitor statuses

    new Cronly is waiting for the first pulse.
    running Your cron is due. Cronly is waiting for your pulse.
    healthy No problems at this moment. If you did receive an alert message, your cron job's running time is longer then your cron job monitor's delay.
    alert There is an active issue with your cron job monitor. See your cron job monitor details for more information.

Cron job monitor archive

An archived monitor isn't actively monitored by Cronly and doesn't count as a monitor for your subscription plan.
To archive a monitor, go to Monitors » Cron jobs » Click Archive next to the monitor.
To see all archived monitors, go to Monitors » Cron jobs » Click Archive in the top right corner.
To restore a monitor, go to archived monitors. Click Restore next to the monitor.

Start monitoring a cron job

The pulse API endpoint is used to monitor your cron job, if you run the cron job yourself. If you use our Cron job tasks, we automatically take care of this.
For more details, go to Cron job monitor
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!
This is a very basic example. More advanced topics are made available soon.
Last modified 4mo ago