Cron Schedules

Every 5 Minutes

Run a job every 5 minutes, 24/7.

Pattern

*/5 * * * *

Explanation

The */5 means "every 5th minute". This runs at :00, :05, :10, :15, etc.

Examples

Cron Expression
Output
*/5 * * * *
Next Runs
Output
10:00, 10:05, 10:10, 10:15, 10:20...

Code Examples

Crontab
# Crontab entry
*/5 * * * * /path/to/script.sh

# Explanation:
# */5  - Every 5 minutes
# *    - Every hour
# *    - Every day
# *    - Every month
# *    - Every day of week
Node.js
// Node-cron (npm package)
const cron = require('node-cron');

cron.schedule('*/5 * * * *', () => {
  console.log('Running job every 5 minutes');
});

Try it Now

💡 Tips

  • Consider system load - 5 minutes is quite frequent
  • Add logging to track execution
  • Use locking to prevent overlapping runs
  • Monitor for failed executions

⚠️ Common Pitfalls

  • Can overload system if job takes longer than 5 minutes
  • May miss executions if system is down
  • Timezone matters - schedule runs in server timezone