Skip to content

Commit

Permalink
Update deploy-jobs.md (#4611)
Browse files Browse the repository at this point in the history
## What are you changing in this pull request and why?
<!---

-->
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).
## Checklist
<!--
-->
- [x] Review the [Content style
guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md)
so my content adheres to these guidelines.
  • Loading branch information
mirnawong1 authored Dec 13, 2023
2 parents 9f5f310 + 8a6e187 commit dd0f216
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions website/docs/docs/deploy/deploy-jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,22 @@ 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
- `*/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 (such as 4:30 AM, 8:30 AM, 12:30 PM, and so on, all UTC).
- `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.
- `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 (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.

## Related docs

Expand Down

0 comments on commit dd0f216

Please sign in to comment.