What is the _actual_ order of submitted jobs?

While I understand that priority has not affect on the order of creating allocations of jobs, I want to know if the actual effective order of creating allocations of jobs is constant or random, what is the actual algorithm.

Let’s imagine I have 10 tasks named a b c … etc. Which job will get an allocation first? Can I depend on the order every time, i.e. given the same set of pending jobs, will the job that will get the allocation always the same?

I would suspect that jobs are stored in a hashtable and the job with greater hash is processed first. I tried reading Nomad source code, but I am not sure.

1 Like