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.

The most complete way to monitor your crons is by creating monitors in Sentry's web interface:

  1. Create monitor in Sentry UI with your cron schedule
  2. Add notification code to your job
  3. Get alerts when jobs fail or don't run

This approach gives you complete monitoring setup including alerts configuration.

Choose the method that matches your current setup:

If you're using one of these popular cron libraries, use the automatic integration for seamless monitoring.

If you have custom cron logic or use a different scheduling library, we recommend the manual integration approach which gives you full control over when and how check-ins are sent.

For advanced use cases like CI/CD pipelines or managing many monitors, consider the programmatic setup which lets you create monitors via code.

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").