Heroku Scheduler is an add-on for running jobs at scheduled time intervals. In rare cases jobs may not be run or run twice. Monitoring those jobs to know when they error or fail to run is easy with Dead Man's Snitch.
To access the Heroku Scheduler dashboard either click on the add-on in the Heroku Dashboard or run:
heroku open scheduler
The fastest way to get started is to use curl to check-in when your jobs run. This is done by appending a call to curl with your Snitch's unique URL to your job definition.
The Dead Man's Snitch buildpack is easy to install and adds our custom monitoring Field Agent to your Heroku dyno. Field Agent opens up new features such as recording log output when a job fails (on supporting plans) and advanced monitoring.
heroku buildpacks:add https://github.com/deadmanssnitch/heroku-buildpack-dms
After your next code deploy, the dms
command will be available in your dyno's shell PATH.
These are the recommended Snitch intervals based on their corresponding frequency in Heroku Scheduler.
Scheduler Frequency | Snitch Interval |
---|---|
Every 10 minutes | 10 Minutes |
Hourly | Smart Hourly |
Daily | Smart Daily |