Skip to main content
Version: 12.10.0

Example Files (Documentation, Helm, Config etc)

Cron Expression Guide

Cron expressions are used to schedule tasks at periodic intervals. A cron expression is made up of five fields, each representing a unit of time. Below is a table outlining the structure of a cron expression and the values each field can take:

FieldAllowed ValuesDescription
Minute0-59The minute of the hour
Hour0-23The hour of the day
Day of the Month1-31The day of the month
Month1-12The month of the year
Day of the Week0-6The day of the week (0 = Sunday)

Each field can be an asterisk (*), which stands for "every" possible value for that field.

Examples of Cron Expressions

Here are some common cron expression examples and their corresponding schedules:

Cron ExpressionSchedule Description
* * * * *Every minute
0 * * * *Every hour, at the start of the hour
0 0 * * *Every day at 12:00 AM (midnight)
0 0 * * FRIEvery Friday at 12:00 AM (midnight)
0 0 1 * *The first day of every month at 12:00 AM (midnight)

These examples illustrate how to use cron expressions to schedule tasks at various intervals, from every minute to specific days of the week or month.