Nomad: [improvement] CLI batch job run or dispatch with automated log and return code

Created on 13 Jan 2018  路  4Comments  路  Source: hashicorp/nomad

Why is not possible to run or dispatch a parametrised batch job with log?
For example assuming a templated job 'MY_JOB' could be useful to have something like:

nomad job dispatch -meta "PARAM1="VAL1" -log MY_JOB

possibly, for easiest shell integration run and dispatch could return internal failing taskCode.

Nomad versions

ALL current 0.7.1

Operating system and Environment details

ALL

stagneeds-discussion themcli typenhancement

Most helpful comment

this is likely something I will add to Levant after the "batch-log" command had been introduced which has similar functionality to this.

All 4 comments

need this function too. Would like to run test jobs inside cluster and need log for CI system for debug purposes.

I really like this idea, but I'm not sure when it will make it on our roadmap.

In the meantime this feature could be done by an external contributor -- or it could even be a separate small application that uses Nomad's APIs:

Thanks for the idea!

In my idea is not necessary to modify API is only necessary to implement something like an allocation watcher on CLI side.
I've done it with a Java piece of software because I'm not so good with GO.
for sure I can share idea

this is likely something I will add to Levant after the "batch-log" command had been introduced which has similar functionality to this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

joliver picture joliver  路  3Comments

stongo picture stongo  路  3Comments

jippi picture jippi  路  3Comments

Gerrrr picture Gerrrr  路  3Comments

funkytaco picture funkytaco  路  3Comments