Cron Expression for Every 10 Minutes
Run a cron job every 10 minutes using */10 * * * *. A balanced interval for tasks that need regular execution without high frequency.
Expression
*/10 * * * * Every 10 minutes
Use Cases
- • Checking external API rate-limited endpoints
- • Generating periodic reports or summaries
- • Refreshing search indexes
- • Pruning expired session tokens
Code Examples
Crontab
# Every 10 minutes
*/10 * * * * /path/to/your/script.sh GitHub Actions
name: Scheduled Job
on:
schedule:
- cron: '*/10 * * * *'
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: echo "Running Every 10 Minutes" systemd Timer
[Unit]
Description=Every 10 Minutes timer
[Timer]
OnCalendar=*-*-* *:*:00
Persistent=true
[Install]
WantedBy=timers.target node-cron (Node.js)
import cron from 'node-cron'
// Every 10 minutes
cron.schedule('*/10 * * * *', () => {
console.log('Running Every 10 Minutes')
}) Spring (@Scheduled, Java)
// Every 10 minutes
@Scheduled(cron = "0 */10 * * * *")
public void run() {
// your task
} Spring cron has 6 fields (a leading seconds field), so a 0 is prepended to the standard 5-field expression.
Tips
- ✓ Runs 6 times per hour and 144 times per day
- ✓ A good compromise between freshness and resource usage
- ✓ Suitable for tasks with moderate execution time
- ✓ Works well for data synchronization between services
Frequently Asked Questions
How many times does */10 run per day?
*/10 runs 6 times per hour (at minutes 0, 10, 20, 30, 40, 50), which equals 144 times per day.
Is */10 the same as 0,10,20,30,40,50?
Yes, both expressions produce identical schedules. */10 is the shorter form.