map and reduce task queue