Cron Expression for Twice a Year
Run a task every 6 months (1st of January and July)
Cron Expression
0 0 1 1,7 *
Understanding this Expression
This cron expression consists of 5 fields that specify when your task will run:
Minutes
0
At the start of the hour
Hours
0
At midnight
Day of Month
1
At 1
Month
1,7
At 1 and 7
Day of Week
*
Any value
Summary
This schedule will run your task run a task every 6 months (1st of january and july).