@osbsapi
    def get_build_request(self, build_type=None):
        build_type = build_type or self.build_conf.get_build_type()
        build_request = self.bm.get_build_request_by_type(build_type=build_type)

        # Apply configured resource limits.
        cpu_limit = self.build_conf.get_cpu_limit()
        memory_limit = self.build_conf.get_memory_limit()
        storage_limit = self.build_conf.get_storage_limit()
        if (cpu_limit is not None or
                memory_limit is not None or
                storage_limit is not None):
            build_request.set_resource_limits(cpu=cpu_limit,
                                              memory=memory_limit,
                                              storage=storage_limit)

        return build_request
Create a new mutex -- initially unlocked.
dataset/ETHPy150Open projectatomic/osbs-client/osbs/api.py/OSBS.get_build_request--crossover with--dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/mutex.py/mutex.__init__