Use our monitors to make sure your cron jobs run on time.
- 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"
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12)
# │ │ │ │ ┌───────────── day of the week (0 - 6) (Sunday to Saturday)
# │ │ │ │ │
# │ │ │ │ │
# * * * * *
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:
Tip: These examples are very basic. There are other ways available, for example with open source packages. We'll be adding more examples soon.
var https = require('https');