You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 27, 2025. It is now read-only.
I have a use-case where I have a parametrized batch job in Nomad. I extended levant to add a command called levant dispatch, which takes the name of the job.
Help text:
sevagh:levant $ levant dispatch --help
Usage: levant dispatch [options] [JOBNAME]
Dispatch an instance of a Nomad parametrized job
Arguments:
JOBNAME name of Nomad parametrized job
General Options:
-address=<http_address>
The Nomad HTTP API address including port which Levant will use to make
calls.
-log-level=<level>
Specify the verbosity level of Levant's logs. Valid values include DEBUG,
INFO, and WARN, in decreasing order of verbosity. The default is INFO.
-monitor
Monitor the job until it completes.
-timeout
How long to wait ( in seconds ) for jobs to be successful before giving up.
Only applies to batch type jobs for now. Default is 300 seconds.
I also borrow code heavily from this other PR which added monitoring for batch jobs: #85
Finally, I have a feature that outputs the stdout and stderr from the Nomad job: