Yearly on January 1
Runs the job once per year at midnight on January 1st. This is the standard annual cron schedule used for year-end processing, annual report generation, license renewals, and any task that needs to execute exactly once per year at the start of the new year.
0 0 1 1 * What is the cron expression for Yearly on January 1?
The cron expression for Yearly on January 1 is 0 0 1 1 *. This five-field cron schedule uses the format minute, hour, day-of-month, month, and day-of-week. Runs the job once per year at midnight on January 1st. This is the standard annual cron schedule used for year-end processing, annual report generation, license renewals, and any task that needs to execute exactly once per year at the start of the new year. Common use cases include annual report generation and year-end data archival.
Field Breakdown
Example Next Run Times
- 1.
2027-01-01 00:00 - 2.
2028-01-01 00:00 - 3.
2029-01-01 00:00 - 4.
2030-01-01 00:00 - 5.
2031-01-01 00:00
Common Use Cases
- ✓ Annual report generation
- ✓ Year-end data archival
- ✓ License renewal reminders
- ✓ Annual compliance checks
Frequently Asked Questions
Is @yearly the same as this?
Yes, the @yearly (or @annually) shorthand is equivalent to 0 0 1 1 *, running at midnight on January 1st each year.
What if the job fails on January 1st?
Since this runs only once a year, implement robust error handling, retries, and alerting. Consider scheduling a backup run on January 2nd or adding manual trigger capability.
How do I run on a different date each year?
Change the month and day fields. For example, 0 0 15 6 * runs on June 15th each year, and 0 0 1 7 * runs on July 1st.