Missed reschedule policy documentation in json-jobs page

This commit is contained in:
Preetha Appan 2018-02-09 16:31:24 -06:00
parent 9e3e929382
commit 023468f112
No known key found for this signature in database
GPG Key ID: 9F7C19990A50EAFC
1 changed files with 22 additions and 0 deletions

View File

@ -235,6 +235,11 @@ The `Job` object supports the following keys:
}
```
- `ReschedulePolicy` - Specifies a reschedule policy to be applied to all task groups
within the job. When specified both at the job level and the task group level,
the reschedule blocks are merged, with the task group's taking precedence. For more
details on `ReschedulePolicy`, please see below.
### Task Group
`TaskGroups` is a list of `TaskGroup` objects, each supports the following
@ -254,6 +259,10 @@ attributes:
If omitted, a default policy for batch and non-batch jobs is used based on the
job type. See the [restart policy reference](#restart_policy) for more details.
- `ReschedulePolicy` - Specifies the reschedule policy to be applied to tasks in this group.
If omitted, a default policy is used for batch and service jobs. System jobs are not eligible
for rescheduling. See the [reschedule policy reference](#reschedule_policy) for more details.
- `EphemeralDisk` - Specifies the group's ephemeral disk requirements. See the
[ephemeral disk reference](#ephemeral_disk) for more details.
@ -501,6 +510,19 @@ The `EphemeralDisk` object supports the following keys:
`alloc/data` directories to the new allocation. Value is a boolean and the
default is false.
<a id="reschedule_policy"></a>
### Reschedule Policy
The `ReschedulePolicy` object supports the following keys:
- `Attempts` - `Attempts` is the number of reschedule attempts allowed
in an `Interval`.
- `Interval` - `Interval` is a time duration that is specified in nanoseconds.
The `Interval` is a sliding window within which at most `Attempts` number
of reschedule attempts are permitted.
<a id="restart_policy"></a>
### Restart Policy