Issue #2593451 by ShaxA, amontero, kala4ek: Cronapi hook is calling $queue->numberOfItems() always which may lead to performance issues