Process each queue in turn before heading to the next. This may prove naive for large numbers of tasks.