![]() In the Month field, JAN,FEB,MAR would include January, February, and March. Syntax cron ( fields) Wildcards The, (comma) wildcard includes additional values. This value can be useful when you are calling the API directly or are editing the KOTS configuration manually.Ġ * * * the default schedule option (every 4 hours). Cron Expressions Cron expressions have six required fields, which are separated by white space. You can use one of the following predefined schedule values instead of a cron expression: Schedule ValueĮquivalent Cron (or once a year, at midnight on January 1.Ġ 0 1 1 once a month, at midnight on the first of the month.Ġ 0 1 * once a week, at midnight on Saturday.Ġ 0 * * once an hour, at the beginning of the hour.Ġ * * * the schedule completely. ![]() For example, the second Friday of the month is specified as 6#2. Specifies the "N-th" occurrence or given day in the month. Specifies the last day of the month or week respectively for the Day-of-month or Day-of-week fields. For example, enter 5 for Day-of-the-month and ? for Day-of-the-week to check for updates on the 5th day of the month, regardless of which day of the week it is. ![]() Specifies that one or another value can be used. Thus this standalone library to parse and apply time stamps to. For example, using * in the Month field means that all of the months are included in the schedule. In another project, I decided to use cron expression syntax to encode scheduling information. Specifies that all of the values for the field are used. For example, 4-6 in the Month field signifies April through June. For example, 1,2,4 in the Day-of-week field signifies every Monday, Tuesday, and Thursday. Specifies a list or multiple values, which can be consecutive or not. The following table describes the supported special characters: Special Character The following table lists the required cron fields and supported values: Required Field
0 Comments
Leave a Reply. |