From c5858e6038496449c123bb1243a5209c3ca6e821 Mon Sep 17 00:00:00 2001 From: Tania <92768464+Tonayya@users.noreply.github.com> Date: Fri, 8 Dec 2023 13:56:43 +1100 Subject: [PATCH 1/6] Update deploy-jobs.md Added some examples where we are using the L expression to specify the last day of the month. Relevant conversation can be found in Slack [here](https://dbt-labs.slack.com/archives/C04KKUHLT32/p1702002328874979). --- website/docs/docs/deploy/deploy-jobs.md | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/website/docs/docs/deploy/deploy-jobs.md b/website/docs/docs/deploy/deploy-jobs.md index e43020bf66e..cb62de00e7e 100644 --- a/website/docs/docs/deploy/deploy-jobs.md +++ b/website/docs/docs/deploy/deploy-jobs.md @@ -87,12 +87,19 @@ Use tools such as [crontab.guru](https://crontab.guru/) to generate the correct Refer to the following example snippets: -- `0 * * * *`: Every hour, at minute 0 -- `*/5 * * * *`: Every 5 minutes -- `5 4 * * *`: At exactly 4:05 AM UTC -- `30 */4 * * *`: At minute 30 past every 4th hour (e.g. 4:30AM, 8:30AM, 12:30PM, etc., all UTC) -- `0 0 */2 * *`: At midnight UTC every other day +- `0 * * * *`: Every hour, at minute 0. +- `*/5 * * * *`: Every 5 minutes. +- `5 4 * * *`: At exactly 4:05 AM UTC. +- `30 */4 * * *`: At minute 30 past every 4th hour (e.g. 4:30AM, 8:30AM, 12:30PM, etc., all UTC). +- `0 0 */2 * *`: At midnight UTC every other day. - `0 0 * * 1`: At midnight UTC every Monday. +- `0 0 L * *`: At 12:00 AM, on the last day of the month. +- `0 0 L 1,2,3,4,5,6,8,9,10,11,12 *`: At 12:00 AM, on the last day of the month, only in January, February, March, April, May, June, August, September, October, November, and December. +- `0 0 L 7 *`: At 12:00 AM, on the last day of the month, only in July. +- `0 0 L * FRI,SAT`: At 12:00 AM, on the last day of the month, and on Friday and Saturday. +- `0 12 L * *`: At 12:00 PM, on the last day of the month. +- `0 7 L * 5`: At 07:00 AM, on the last day of the month, and on Friday. +- `30 14 L * *`: At 02:30 PM, on the last day of the month. ## Related docs From c38cde999d6f7d037326a33fb6e3ae0ce7883331 Mon Sep 17 00:00:00 2001 From: mirnawong1 <89008547+mirnawong1@users.noreply.github.com> Date: Fri, 8 Dec 2023 07:14:15 -0500 Subject: [PATCH 2/6] Update website/docs/docs/deploy/deploy-jobs.md --- website/docs/docs/deploy/deploy-jobs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/docs/deploy/deploy-jobs.md b/website/docs/docs/deploy/deploy-jobs.md index cb62de00e7e..d7fe0b361d2 100644 --- a/website/docs/docs/deploy/deploy-jobs.md +++ b/website/docs/docs/deploy/deploy-jobs.md @@ -90,7 +90,7 @@ Refer to the following example snippets: - `0 * * * *`: Every hour, at minute 0. - `*/5 * * * *`: Every 5 minutes. - `5 4 * * *`: At exactly 4:05 AM UTC. -- `30 */4 * * *`: At minute 30 past every 4th hour (e.g. 4:30AM, 8:30AM, 12:30PM, etc., all UTC). +- `30 */4 * * *`: At minute 30 past every 4th hour (such as 4:30 AM, 8:30 AM, 12:30 PM, and so on, all UTC). - `0 0 */2 * *`: At midnight UTC every other day. - `0 0 * * 1`: At midnight UTC every Monday. - `0 0 L * *`: At 12:00 AM, on the last day of the month. From 69227e0d4f178e4b6472d6fbdef7bd469366d49e Mon Sep 17 00:00:00 2001 From: mirnawong1 <89008547+mirnawong1@users.noreply.github.com> Date: Fri, 8 Dec 2023 07:14:42 -0500 Subject: [PATCH 3/6] Update website/docs/docs/deploy/deploy-jobs.md --- website/docs/docs/deploy/deploy-jobs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/docs/deploy/deploy-jobs.md b/website/docs/docs/deploy/deploy-jobs.md index d7fe0b361d2..09b5491b1db 100644 --- a/website/docs/docs/deploy/deploy-jobs.md +++ b/website/docs/docs/deploy/deploy-jobs.md @@ -93,7 +93,7 @@ Refer to the following example snippets: - `30 */4 * * *`: At minute 30 past every 4th hour (such as 4:30 AM, 8:30 AM, 12:30 PM, and so on, all UTC). - `0 0 */2 * *`: At midnight UTC every other day. - `0 0 * * 1`: At midnight UTC every Monday. -- `0 0 L * *`: At 12:00 AM, on the last day of the month. +- `0 0 L * *`: At 12:00 AM (midnight), on the last day of the month. - `0 0 L 1,2,3,4,5,6,8,9,10,11,12 *`: At 12:00 AM, on the last day of the month, only in January, February, March, April, May, June, August, September, October, November, and December. - `0 0 L 7 *`: At 12:00 AM, on the last day of the month, only in July. - `0 0 L * FRI,SAT`: At 12:00 AM, on the last day of the month, and on Friday and Saturday. From f076c2d6742a70832801f7522cb65954d09c2fad Mon Sep 17 00:00:00 2001 From: mirnawong1 <89008547+mirnawong1@users.noreply.github.com> Date: Fri, 8 Dec 2023 07:15:01 -0500 Subject: [PATCH 4/6] Update website/docs/docs/deploy/deploy-jobs.md --- website/docs/docs/deploy/deploy-jobs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/docs/deploy/deploy-jobs.md b/website/docs/docs/deploy/deploy-jobs.md index 09b5491b1db..ef46b368b91 100644 --- a/website/docs/docs/deploy/deploy-jobs.md +++ b/website/docs/docs/deploy/deploy-jobs.md @@ -91,7 +91,7 @@ Refer to the following example snippets: - `*/5 * * * *`: Every 5 minutes. - `5 4 * * *`: At exactly 4:05 AM UTC. - `30 */4 * * *`: At minute 30 past every 4th hour (such as 4:30 AM, 8:30 AM, 12:30 PM, and so on, all UTC). -- `0 0 */2 * *`: At midnight UTC every other day. +- `0 0 */2 * *`: At 12:00 AM (midnight) UTC every other day. - `0 0 * * 1`: At midnight UTC every Monday. - `0 0 L * *`: At 12:00 AM (midnight), on the last day of the month. - `0 0 L 1,2,3,4,5,6,8,9,10,11,12 *`: At 12:00 AM, on the last day of the month, only in January, February, March, April, May, June, August, September, October, November, and December. From e3c7326f12994ed901a5d9de2a9934e2dea48569 Mon Sep 17 00:00:00 2001 From: mirnawong1 <89008547+mirnawong1@users.noreply.github.com> Date: Fri, 8 Dec 2023 07:16:50 -0500 Subject: [PATCH 5/6] Update website/docs/docs/deploy/deploy-jobs.md --- website/docs/docs/deploy/deploy-jobs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/docs/deploy/deploy-jobs.md b/website/docs/docs/deploy/deploy-jobs.md index ef46b368b91..5c7ef0ca8b3 100644 --- a/website/docs/docs/deploy/deploy-jobs.md +++ b/website/docs/docs/deploy/deploy-jobs.md @@ -97,7 +97,7 @@ Refer to the following example snippets: - `0 0 L 1,2,3,4,5,6,8,9,10,11,12 *`: At 12:00 AM, on the last day of the month, only in January, February, March, April, May, June, August, September, October, November, and December. - `0 0 L 7 *`: At 12:00 AM, on the last day of the month, only in July. - `0 0 L * FRI,SAT`: At 12:00 AM, on the last day of the month, and on Friday and Saturday. -- `0 12 L * *`: At 12:00 PM, on the last day of the month. +- `0 12 L * *`: At 12:00 PM (afternoon), on the last day of the month. - `0 7 L * 5`: At 07:00 AM, on the last day of the month, and on Friday. - `30 14 L * *`: At 02:30 PM, on the last day of the month. From b237f544d461378bcab7b8ea5590543b5fbfe618 Mon Sep 17 00:00:00 2001 From: mirnawong1 <89008547+mirnawong1@users.noreply.github.com> Date: Fri, 8 Dec 2023 07:26:55 -0500 Subject: [PATCH 6/6] Update website/docs/docs/deploy/deploy-jobs.md --- website/docs/docs/deploy/deploy-jobs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/docs/deploy/deploy-jobs.md b/website/docs/docs/deploy/deploy-jobs.md index 5c7ef0ca8b3..cee6e245359 100644 --- a/website/docs/docs/deploy/deploy-jobs.md +++ b/website/docs/docs/deploy/deploy-jobs.md @@ -84,7 +84,7 @@ To fully customize the scheduling of your job, choose the **Custom cron schedule Use tools such as [crontab.guru](https://crontab.guru/) to generate the correct cron syntax. This tool allows you to input cron snippets and returns their plain English translations. -Refer to the following example snippets: +Here are examples of cron job schedules. The dbt Cloud job scheduler supports using `L` to schedule jobs on the last day of the month: - `0 * * * *`: Every hour, at minute 0.