github.com/adityamillind98/nomad@v0.11.8/website/pages/docs/commands/job/eval.mdx (about) 1 --- 2 layout: docs 3 page_title: 'Commands: job eval' 4 sidebar_title: eval 5 description: | 6 The job eval command is used to force an evaluation of a job 7 --- 8 9 # Command: job eval 10 11 The `job eval` command is used to force an evaluation of a job, given the job 12 ID. 13 14 ## Usage 15 16 ```plaintext 17 nomad job eval [options] <job_id> 18 ``` 19 20 The `job eval` command requires a single argument, specifying the job ID to 21 evaluate. If there is an exact match based on the provided job ID, then the job 22 will be evaluated, forcing a scheduler run. 23 24 ## General Options 25 26 @include 'general_options.mdx' 27 28 ## Eval Options 29 30 - `-force-reschedule`: `force-reschedule` is used to force placement of failed 31 allocations. If this is set, failed allocations that are past their reschedule 32 limit, and those that are scheduled to be replaced at a future time are placed 33 immediately. This option only places failed allocations if the task group has 34 rescheduling enabled. 35 36 - `-detach`: Return immediately instead of monitoring. A new evaluation ID 37 will be output, which can be used to examine the evaluation using the 38 [eval status] command. 39 40 - `-verbose`: Show full information. 41 42 ## Examples 43 44 Evaluate the job with ID "job1": 45 46 ```shell-session 47 $ nomad job eval job1 48 ==> Monitoring evaluation "0f3bc0f3" 49 Evaluation triggered by job "test" 50 Evaluation within deployment: "51baf5c8" 51 Evaluation status changed: "pending" -> "complete" 52 ==> Evaluation "0f3bc0f3" finished with status "complete" 53 ``` 54 55 Evaluate the job with ID "job1" and return immediately: 56 57 ```shell-session 58 $ nomad job eval -detach job1 59 Created eval ID: "4947e728" 60 ``` 61 62 Evaluate the job with ID "job1", and reschedule any eligible failed allocations: 63 64 ```shell-session 65 $ nomad job eval -force-reschedule job1 66 ==> Monitoring evaluation "0f3bc0f3" 67 Evaluation triggered by job "test" 68 Evaluation within deployment: "51baf5c8" 69 Evaluation status changed: "pending" -> "complete" 70 ==> Evaluation "0f3bc0f3" finished with status "complete" 71 ``` 72 73 [eval status]: /docs/commands/eval-status