Skip to content

Commit 4783673

Browse files
authored
docs: Update job scheduling using cron (#399)
* updated the cron with 7 field * added cron examples in properties section
1 parent dcbaf74 commit 4783673

1 file changed

Lines changed: 26 additions & 2 deletions

File tree

docs/understanding/terminologies/olake.mdx

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,20 +209,44 @@ User has to start with job creation, which will be followed with source configur
209209
- Default options i.e every minute, hourly, daily, weekly
210210
- Custom frequency: Specify a cron expression.
211211

212-
**Guide to Cron Expression:**
212+
OLake supports **Custom Frequency** using cron expressions in both 5-field and 7-field formats:
213+
214+
- **5-field:** `minute, hour, day_of_month, month, day_of_week`
215+
- **7-field:** `second, minute, hour, day_of_month, month, day_of_week, year`
216+
217+
:::note
218+
OLake does **not** support Quartz cron syntax.
219+
:::
220+
221+
**Guide to Cron Expression (5-field format):**
213222

214223
| * | * | * | * | * |
215224
|---|---|---|---|---|
216225
| minute (0-59) | hour (0-23) | day of the month (1-31) | month (1-12) | day of the week (0-6) |
217226

218227

219-
**Cron Examples:**
228+
**Cron Examples (5-field format):**
220229
- `* * * * *` = Every minute
221230
- `0 * * * *` = Every hour
222231
- `0 0 * * *` = Every day at 12:00 AM
223232
- `0 0 * * FRI` = At midnight only on Fridays
224233
- `0 0 1 * *` = At midnight on the 1st day of each month
225234

235+
**Guide to Cron Expression (7-field format):**
236+
237+
| * | * | * | * | * | * | * |
238+
|---|---|---|---|---|---|---|
239+
| second (0-59) | minute (0-59) | hour (0-23) | day of the month (1-31) | month (1-12) | day of the week (0-6) | year |
240+
241+
**Cron Examples (7-field format):**
242+
- `* * * * * * *` = Every second
243+
- `0 * * * * * *` = Every minute
244+
- `0 0 * * * * *` = Every hour
245+
- `0 0 0 * * * *` = Every day (day_of_month)
246+
- `0 0 0 1 * * *` = Every month (on day 1)
247+
- `0 0 0 * * 5 *` = Every week (on Friday)
248+
- `0 0 0 1 1 * *` = Every year (on January 1)
249+
226250
<div style={{ textAlign: "center" }}>
227251
<img src="/img/docs/terminologies/job-config.webp"
228252
alt="Olake Partition output"

0 commit comments

Comments
 (0)