def in_parallel_by(self, tasks, amount):
        """Deploy given nodes in parallel by chunks."""
        for index, task in enumerate(tasks):
            if index % amount == 0:
                self._priority.next()
            task['priority'] = self._priority.current
dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/orchestrator/priority_serializers.py/PriorityStrategy.in_parallel_by/original