Kunal gupta
Kunal gupta

Reputation: 581

Cron expression for a job that runs every 30 minutes in a specific time window

I have a job running in spring boot and I want to run it every 30 minutes between 12 AM and 8 AM starting at 12 AM. I am struggling to figure out the cron-expression that can be used to achieve this.

Upvotes: 0

Views: 958

Answers (1)

Katy
Katy

Reputation: 1157

This is the cron you described: * 0/30 0-8 ? * *

Upvotes: 3

Related Questions