jrxFive / python-nomad

Client library Hashicorp Nomad
https://python-nomad.readthedocs.io/en/latest/
MIT License
139 stars 73 forks source link

enforceIndex and jobModifyIndex #97

Closed greut closed 1 year ago

greut commented 5 years ago

I'd love to be able to send the jobModifyIndex to the register_job call.

c.f. https://www.nomadproject.io/api/jobs.html#create-job

nikita-b commented 1 year ago

These are slightly late comments but people can still find this issue through Google... You can do it even now:

    nomad_api.jobs.register_job(job={"Job": job_json, "EnforceIndex": True, "JobModifyIndex"=index_number})

I'll close the issue but if you have questions feel free to ask.