Set Up Crons
Monitor your scheduled jobs with Sentry - choose the setup method that works best for you.
Monitor the uptime and performance of your scheduled jobs in Node.js. Get alerts when jobs fail, timeout, or don't run as expected.
Select the approach that best fits your needs:
UI Setup
EasiestCreate monitors in Sentry's web interface. No code changes required.
Best for: Simple scripts, getting started quickly
Automatic
RecommendedAuto-instrument existing cron libraries with minimal code changes.
Best for: Apps using node-cron, cron, or node-schedule
Manual Integration
Full SDK integration with custom status updates and error handling.
Best for: Custom cron logic, maximum control
Advanced Setup
Programmatically create and manage monitors via code.
Best for: CI/CD pipelines, managing many monitors
- Just want notifications? → UI Setup
- Using node-cron or similar? → Automatic
- Need custom error handling? → Manual Integration
- Managing 10+ monitors? → Advanced Setup
Once set up, Sentry cron monitoring provides:
- Failure Alerts: Get notified when jobs don't run as expected
- Timeout Detection: Catch jobs that exceed their maximum runtime
- Timeline View: See a visual history of your job executions
- Error Integration: Connect runtime errors to specific job runs
- Issue Management: Automatically create and resolve issues based on job health
Was this helpful?
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").