14.96z"/>
      </svg></a> </h2>
<section aria-labelledby="toc_in-what-order-are-jobs-executed-on-the-queues">
<p>The algorithm works this way:</p>
<ol>
<li>Let the highest priority queue with pending jobs be: <code>CURRENT_QUEUE</code>,
if there are no queues with pending jobs the run loop is complete</li>
<li>Let a new temporary queue be defined as <code>WORK_QUEUE</code></li>
<li>Move jobs from <code>CURRENT_QUEUE</code> into <code>WORK_QUEUE</code></li>
<li>Process all the jobs sequentially in <code>WOR