Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 5 additions & 24 deletions docs/reference/cron-expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ The following table lists the required cron fields and supported values:
<tr>
<td>Day-of-month</td>
<td>1 through 31</td>
<td>, - * ? L W </td>
<td>, - * ? </td>
</tr>
<tr>
<td>Month</td>
Expand All @@ -43,12 +43,14 @@ The following table lists the required cron fields and supported values:
<tr>
<td>Day-of-week</td>
<td>1 through 7 or SUN through SAT</td>
<td>, - * ? L</td>
<td>, - * ?</td>
</tr>
</table>

## Special Characters

Replicated uses an external cron Go library. For more information about it's usage, see [cron](https://pkg.go.dev/github.com/robfig/cron/v3).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^ added link to the library

The following table describes the supported special characters:

<table>
Expand All @@ -72,14 +74,6 @@ The following table describes the supported special characters:
<td>Question mark (?)</td>
<td> Specifies that one or another value can be used. For example, enter <code>5</code> for Day-of-the-month and <code>?</code> 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.</td>
</tr>
<tr>
<td>L</td>
<td>Specifies the last day of the month or week respectively for the Day-of-month or Day-of-week fields.</td>
</tr>
<tr>
<td>W</td>
<td>Specifies the "N-th" occurrence or given day in the month. For example, the second Friday of the month is specified as <code>6#2</code>.</td>
</tr>
</table>

## Predefined Schedules
Expand Down Expand Up @@ -151,21 +145,8 @@ The following examples show valid cron expressions to schedule checking for upda
30 11 * * *
```

- At 6:00 PM on the fourth Monday of every month:

```
0 18 ? * 2#4
```

- At midnight on the last day of every month:

```
0 0 L * ?
```

- After 1 hour and 45 minutes, and then every interval following that:

```
@every 1h45m
```

```