docs: fix job json example (#5274)

The internal needs to be long enough to accomodate the attempts.

Also, clarify that the input should be a json file rather than an hcl
`.nomad` one.
This commit is contained in:
Mahmood Ali
2019-01-30 10:33:10 -05:00
committed by GitHub
parent a06b032984
commit 541cddd3e2

View File

@@ -189,9 +189,9 @@ The table below shows this endpoint's support for
"Attempts": 10,
"Delay": 30000000000,
"DelayFunction": "exponential",
"Interval": 0,
"Interval": 36000000000000,
"MaxDelay": 3600000000000,
"Unlimited": true
"Unlimited": false
},
"EphemeralDisk": {
"SizeMB": 300
@@ -213,7 +213,7 @@ The table below shows this endpoint's support for
```text
$ curl \
--request POST \
--data @my-job.nomad \
--data @my-job.json \
https://localhost:4646/v1/jobs
```