docs: add deprecation notice to cron on docs/job-specification/periodic (#23424)

This commit is contained in:
Antti
2024-06-24 23:35:20 +08:00
committed by GitHub
parent cc7a5ed7e2
commit bbdc8b7fa7

View File

@@ -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;