Home / Companies / HashiCorp / Blog / Post Details
Content Deep Dive

Running Duplicate Batch Jobs in HashiCorp Nomad

Blog post from HashiCorp

Post Details
Company
Date Published
Author
Karl Cardenas
Word Count
1,675
Language
English
Hacker News Points
-
Summary

Two approaches to injecting variability into your Nomad batch job template without having to modify the template in the future. One approach is to use a UUID as an ever-changing value, which can be achieved by using HCL2 functions and the meta block to inject variation into a batch job without altering the job specification template. Another approach is to use an HCL2 variable, where a unique value is provided each time the command nomad run is issued with the variable flag, ensuring that the job allocation is successful only when a unique value is submitted. Both approaches allow for injecting variability into Nomad batch jobs without modifying the job template itself.