Job priority queue implementation