mirror of
https://github.com/kemko/nomad.git
synced 2026-01-02 16:35:44 +03:00
The `ALLOC_INDEX` isn't guaranteed to be unique, and this has caused some user confusion. The servers make a best-effort attempt to make this value unique from 0 to count-1 but when you have canaries on the task group, there are reused indexes because you have multiple job versions running at the same time. If a user needs a unique number for interpolating a value in your application, they can get this by combining the job version and the alloc index. Co-Authored-By: Michael Schurter <mschurter@hashicorp.com>