try to construct the map from taskId -> queueId in round robin manner.