-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Preetha Appan
committed
May 9, 2018
1 parent
4f9d92c
commit 2d0e273
Showing
1 changed file
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1361,7 +1361,9 @@ $ curl \ | |
## Create Job Evaluation | ||
|
||
This endpoint creates a new evaluation for the given job. This can be used to | ||
force run the scheduling logic if necessary. | ||
force run the scheduling logic if necessary. Since Nomad 0.8.4, this endpoint | ||
supports a JSON payload with additional options. Support for calling this end point | ||
without a JSON payload will be removed in Nomad 0.9. | ||
|
||
| Method | Path | Produces | | ||
| ------- | -------------------------- | -------------------------- | | ||
|
@@ -1380,11 +1382,30 @@ The table below shows this endpoint's support for | |
- `:job_id` `(string: <required>)` - Specifies the ID of the job (as specified in | ||
the job file during submission). This is specified as part of the path. | ||
|
||
- `JobID` `(string: <required>)` - Specify the ID of the job in the JSON payload | ||
|
||
- `EvalOptions` `(<optional>)` - Specify additional options to be used during the forced evaluation. | ||
- `ForceReschedule` `(bool: false)` - If set, any failed allocations of the job are rescheduled | ||
immediately. This is useful for operators to force immediate placement even if the failed allocations are past | ||
their reschedule limit, or are delayed by several hours because the allocation's reschedule policy has exponential delay. | ||
|
||
### Sample Payload | ||
|
||
```json | ||
{ | ||
"JobID": "my-job", | ||
"EvalOptions": { | ||
"ForceReschedule":true | ||
} | ||
} | ||
``` | ||
|
||
### Sample Request | ||
|
||
```text | ||
$ curl \ | ||
--request POST \ | ||
[email protected] \ | ||
https://localhost:4646/v1/job/my-job/evaluate | ||
``` | ||
|
||
|