Skip to content
cron.surf

*/2 * * * *

What the cron expression */2 * * * * means, when it runs next, and how to write it on every platform.

“Every 2 minutes”

Open in tool
*/2minuteevery 2
*hourevery
*day of monthevery
*monthevery
*day of weekevery
Every 2 minutes: Full guide with config →

On other platforms

crontab
*/2 * * * *
GitHub Actions
  • GitHub Actions runs schedules at most every 5 minutes; this asks for more often.

    WorkaroundTrigger the workflow from outside with workflow_dispatch or repository_dispatch, or run the schedule somewhere else.
Kubernetes
*/2 * * * *
AWS EventBridge
cron(0/2 * * * ? *)
Spring
0 */2 * * * *
Quartz
0 */2 * * * ?

Next 10 runs

computed in your browser
  1. Calculating…

FAQ

What does */2 * * * * mean in cron?

Every 2 minutes

Does */2 * * * * work in GitHub Actions?

Not as is. GitHub Actions runs schedules at most every 5 minutes; this asks for more often.

Does */2 * * * * work in Kubernetes?

Yes, exactly as written.

Does */2 * * * * work in AWS EventBridge?

Yes, as cron(0/2 * * * ? *).

More expressions