get_waiting_tasks
* Switch to a generator in `get_waiting_tasks` * Faster checking for empty task queues