more review feedback

This commit is contained in:
Preetha Appan
2018-03-27 14:09:04 -05:00
parent b77f26021a
commit ab39d028ce
2 changed files with 9 additions and 12 deletions

View File

@@ -530,18 +530,16 @@ The `ReschedulePolicy` object supports the following keys:
- `Delay` - A duration to wait before attempting rescheduling. It is specified in
nanoseconds.
- `DelayFunction` - Defines how the delay between subsequent reschedule attempts
changes. This is to allow a progressively increasing backoff period. Allowed values
for `DelayFunction` are listed below:
- `linear` - The delay between reschedule attempts stays at the `Delay` value defined above.
- `exponential` - The delay between reschedule attempts doubles until it reaches a specified
`MaxDelay` value.
- `DelayFunction` - Specifies the function that is used to calculate subsequent reschedule delays.
The initial delay is specified by the `Delay` parameter. Allowed values for `DelayFunction` are listed below:
- `constant` - The delay between reschedule attempts stays at the `Delay` value.
- `exponential` - The delay between reschedule attempts doubles.
- `fibonacci` - The delay between reschedule attempts is calculated by adding the two most recent
delays applied. For example if `Delay` is set to 5 seconds, the next five reschedule attempts will be
delayed by 5 seconds, 5 seconds, 10 seconds, 15 seconds, and 25 seconds respectively.
- `MaxDelay` - `MaxDelay` is an upper bound on the delay beyond which it will not increase. This parameter is used when
`DelayFunction` is `exponential` or `fibonacci`, and is ignored when `linear` delay is used.
`DelayFunction` is `exponential` or `fibonacci`, and is ignored when `constant` delay is used.
- `Unlimited` - `Unlimited` enables unlimited reschedule attempts. If this is set to true
the `Attempts` and `Interval` fields are not used.

View File

@@ -64,12 +64,11 @@ job "docs" {
- `delay` `(string: <varies>)` - Specifies the duration to wait before attempting
to reschedule a failed task. This is specified using a label suffix like "30s" or "1h".
- `delay_function` `(string: <varies>)` - Specifies the function according to which
the initial delay specified in `delay` changes. `delay_function` has three possible
values which are described below.
- `delay_function` `(string: <varies>)` - Specifies the function that is used to
calculate subsequent reschedule delays. The initial delay is specified by the delay parameter.
`delay_function` has three possible values which are described below.
- `constant` - The delay between reschedule attempts stays constant at the `delay` value.
- `exponential` - The delay between reschedule attempts doubles until it reaches a specified
`max_delay` value.
- `exponential` - The delay between reschedule attempts doubles.
- `fibonacci` - The delay between reschedule attempts is calculated by adding the two most recent
delays applied. For example if `delay` is set to 5 seconds, the next five reschedule attempts will be
delayed by 5 seconds, 5 seconds, 10 seconds, 15 seconds, and 25 seconds respectively.