def allocate_slave(self, slave):
        if not self._slaves_allocated:
            # If this is the first slave to be allocated, update the build state.
            self._build.mark_started()

        self._slaves_allocated.append(slave)
        slave.setup(self._build, executor_start_index=self._num_executors_allocated)
        self._num_executors_allocated += min(slave.num_executors, self._max_executors_per_slave)
        analytics.record_event(analytics.BUILD_SETUP_START, build_id=self._build.build_id(), slave_id=slave.id)
Get the path for the migrate repository.
dataset/ETHPy150Open box/ClusterRunner/app/master/build_scheduler.py/BuildScheduler.allocate_slave--crossover with--dataset/ETHPy150Open nii-cloud/dodai-compute/nova/db/sqlalchemy/migration.py/_find_migrate_repo_dodai