nomad-vector-logger
nomad-vector-logger copied to clipboard
refactor: use List Node Allocations endpoint
Use List Node Allocations to directly get allocations by node ID rather than getting AllocationListStub and then querying for individual Allocation. Also eliminates the if block to check whether the current allocation is running on this node or not.
Docs: https://developer.hashicorp.com/nomad/api-docs/nodes#list-node-allocations