Queue selected by definition order, not shortest run time.
Consider two queues:
- Long - 10h
- Short - 1h
That are defined in the queue config in that order. Submit a job with runtime of 0.5h, the short queue should be selected, but in fact the long queue will be as it is first in the list, but short queue should actually be selected as it more appropriate in this case.