All Cron Schedules

Cron Every 2 Minutes

Run a cron job every 2 minutes:

*/2 * * * *

Understanding the Expression

The cron expression */2 * * * * breaks down as follows:

Field Value Meaning
Minute*/2Every 2 minutes
Hour*Every hour
Day of month*Every day of the month
Month*Every month
Day of week*Every day of the week

Example Usage

Basic crontab entry

*/2 * * * * /path/to/your/script.sh

With output logging

*/2 * * * * /path/to/script.sh >> /var/log/script.log 2>&1

With monitoring

*/2 * * * * /path/to/script.sh && curl -fsS https://cronsignal.io/ping/YOUR_CHECK_ID

Common Use Cases for Every 2 Minutes

  • Real-time monitoring: Check system health and service availability
  • Queue processing: Process background job queues frequently
  • Cache warming: Keep caches fresh with regular updates
  • Metrics collection: Gather application and infrastructure metrics

Platform Equivalents

The same schedule expressed across common platforms and schedulers:

Platform Syntax
Linux crontab*/2 * * * *
GitHub Actions- cron: 'N/A (GHA minimum is 5 minutes)'
systemd timerOnCalendar=*:0/2
Kubernetes CronJobschedule: "*/2 * * * *"
AWS EventBridgecron(0/2 * * * ? *)

Timezone Considerations

Fires 30 times per hour — 720 times per day. At this frequency, clock accuracy matters: 30 seconds of NTP drift noticeably affects intervals.

Common Mistakes

  • GitHub Actions does not support this: GHA has a 5-minute minimum. */2 * * * * will not run as expected.
  • High blast radius: A bug executes 720 times per day. Always monitor from day one.
  • AWS EventBridge minimum is 1 minute: */2 works. For sub-minute needs, use Step Functions instead.

Monitor this schedule

Get alerted when your cron job doesn't run.

Sign up with Google
or

Explore More