Nomad: [thinking] Periodic batch job trigger immediately option

Created on 9 Feb 2018  路  3Comments  路  Source: hashicorp/nomad

When deploying batch jobs, especially during initial release or when releasing updates to the program code, it would be nice to be able to enforce an immediate trigger upon registration so that operators can see the immediate results rather than wait until the next launch. After the initial trigger the job can stick to the initial planned launch cycle.

Nomad version

0.7.1

Most helpful comment

Will there be a commandline equivalent of the cURL command in v0.8?

Example: nomad run -force sample.nomad

All 3 comments

Hey this already exists and will be part of the UI as well in 0.8: https://www.nomadproject.io/api/jobs.html#force-new-periodic-instance

Will there be a commandline equivalent of the cURL command in v0.8?

Example: nomad run -force sample.nomad

Instead of nomad run -force sample.nomad perhaps its own subcommand (with something like nomad job force sample, also aliased to nomad force sample) would make it clearer that this only applies to an existing job ID (like the API does) and not to a job file. The subcommand would return an error if the job ID supplied does not point to a job of type "periodic".

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dekimsey picture dekimsey  路  3Comments

mlafeldt picture mlafeldt  路  3Comments

bdclark picture bdclark  路  3Comments

funkytaco picture funkytaco  路  3Comments

ashald picture ashald  路  3Comments