Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport of docs: add deprecation notice to cron on docs/job-specification/periodic into release/1.8.x #23426

Merged
merged 1 commit into from
Jun 24, 2024
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
7 changes: 3 additions & 4 deletions website/content/docs/job-specification/periodic.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,16 @@ consistent evaluation when Nomad spans multiple time zones.

## `periodic` Parameters

- `cron` `(string: <required>)` - Specifies a cron expression configuring the
- `cron` (_deprecated_: Replaced by `crons` in 1.6.2) `(string)` - Specifies a cron expression configuring the
interval to launch the job. In addition to [cron-specific formats][cron], this
option also includes predefined expressions such as `@daily` or `@weekly`.
option also includes predefined expressions such as `@daily` or `@weekly`. Either `cron` or `crons` must be set, but not both.

- `crons` - A list of cron expressions configuring the intervals the job is
launched at. The job runs at the next earliest time that matches any of the
expressions. Supports predefined expressions such as `@daily` and
`@weekly`. Refer to [the
documentation](https://github.com/hashicorp/cronexpr#implementation) for full
details about the supported cron specs and the predefined expressions.
Conflicts with `cron`.
details about the supported cron specs and the predefined expressions. Either `cron` or `crons` must be set, but not both.

- `prohibit_overlap` `(bool: false)` - Specifies if this job should wait until
previous instances of this job have completed. This only applies to this job;
Expand Down
Loading