Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
2ea09b82
Unverified
Commit
2ea09b82
authored
7 years ago
by
Preetha Appan
Browse files
Options
Download
Email Patches
Plain Diff
Fix docs and method documentation in API
parent
ae5d8fd5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
api/jobs.go
+2
-1
api/jobs.go
website/source/docs/commands/job/eval.html.md.erb
+17
-2
website/source/docs/commands/job/eval.html.md.erb
with
19 additions
and
3 deletions
+19
-3
api/jobs.go
+
2
-
1
View file @
2ea09b82
...
...
@@ -233,7 +233,8 @@ func (j *Jobs) ForceEvaluate(jobID string, q *WriteOptions) (string, *WriteMeta,
return
resp
.
EvalID
,
wm
,
nil
}
// ForceEvaluate is used to force-evaluate an existing job.
// EvaluateWithOpts is used to force-evaluate an existing job and takes additional options
// for whether to force reschedule failed allocations
func
(
j
*
Jobs
)
EvaluateWithOpts
(
jobID
string
,
opts
EvalOptions
,
q
*
WriteOptions
)
(
string
,
*
WriteMeta
,
error
)
{
req
:=
&
JobEvaluateRequest
{
JobID
:
jobID
,
...
...
This diff is collapsed.
Click to expand it.
website/source/docs/commands/job/eval.html.md.erb
+
17
-
2
View file @
2ea09b82
...
...
@@ -43,12 +43,27 @@ Evaluate the job with ID "job1":
```
$ nomad job eval job1
Created eval ID: "6754c2e3-9abb-e7e9-dc92-76aab01751c8"
==> Monitoring evaluation "0f3bc0f3"
Evaluation triggered by job "test"
Evaluation within deployment: "51baf5c8"
Evaluation status changed: "pending" -> "complete"
==> Evaluation "0f3bc0f3" finished with status "complete"
```
Evaluate the job with ID "job1" and return immediately:
```
$ nomad job eval -detach job1
Created eval ID: "4947e728"
```
Evaluate the job with ID "job1", and reschedule any eligible failed allocations:
```
$ nomad job eval -force-reschedule job1
Created eval ID: "6754c2e3-9abb-e7e9-dc92-76aab01751c8"
==> Monitoring evaluation "0f3bc0f3"
Evaluation triggered by job "test"
Evaluation within deployment: "51baf5c8"
Evaluation status changed: "pending" -> "complete"
==> Evaluation "0f3bc0f3" finished with status "complete"
```
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help