⏰Cron Schedules
Every 30 Minutes
Run twice per hour at :00 and :30 minutes.
Pattern
*/30 * * * *Explanation
Runs at the top and bottom of each hour. Moderate frequency for regular tasks.
Examples
Cron Expression
Output
*/30 * * * *
Alternative
Output
0,30 * * * *
Next Runs
Output
10:00, 10:30, 11:00, 11:30...
Code Examples
Crontab
# Method 1: Using */30
*/30 * * * * /path/to/script.sh
# Method 2: Explicit times (more compatible)
0,30 * * * * /path/to/script.sh
# Both run at :00 and :30 of every hourTry it Now
💡 Tips
- Good compromise between frequent and efficient
- Use for API polling with rate limits
- Consider 0,30 syntax for better compatibility
- Perfect for cache updates
⚠️ Common Pitfalls
- Some old cron versions don't support */30
- Not ideal if you need hourly on-the-hour only
- May still be too frequent for heavy operations