Nomad: Dispatch parameterized jobs from UI [feature request]

Created on 10 Nov 2020  路  1Comment  路  Source: hashicorp/nomad

Feature

It would be useful to dispatch simple parameterized jobs from the ui, rather than having to use the cli/api to do this. Currently I have various housekeeping jobs which operate on a single parameter, which is typically a single word. It would be very quick and easy to open the webui, find the job, click a dispatch button, enter the meta parameter and hit go. The cli alternative requires a lot of typing, and wrangling of tokens from vault, managing env vars etc. As the nomad administrator, I have the tools and info readily to hand, ops teammates do not always have this setup, or do it often enough that the commands to do so are in muscle memory. The ethos for the UI appears to be "make life easier" and this would fit well with that.

Possible implementation

i can imagine a very simple UI which simply renders text inputs for the defined meta parameters (with indication as to which ones are required) and a textarea/file upload widget for the payload data.

Use cases

Example operations which would become much easier to operate via UI:

  • A batch job which clones the production database to a staging/dev environment taking the target environment as a meta parameter
  • A user onboarding batch job which takes a username and a role as meta parameters and registers them in some system
stagaccepted themui typenhancement

Most helpful comment

This is an excellent idea and one that I have given some backburner thought to as well. Here's a wireframe from some prior noodling:

image

>All comments

This is an excellent idea and one that I have given some backburner thought to as well. Here's a wireframe from some prior noodling:

image

Was this page helpful?
0 / 5 - 0 ratings