def _get_estimate(self, host, resource_desc, credentials):
        set_credentials(credentials)
        try:
            estimate, criteria = host.allocator.time_estimate(resource_desc)
        except Exception:
            msg = traceback.format_exc()
            self._logger.error('%r time_estimate() caught exception %s',
                               host.allocator.name, msg)
            estimate = None
            criteria = None
        else:
            if estimate == 0:
                if 'loadavgs' in criteria:
                    load = '%g' % criteria['loadavgs'][0]
                else:
                    load = 'None'
                self._logger.debug('%r returned %g (%s)', host.allocator.name,
                                   estimate, load)
            else:
                self._logger.debug('%r returned %g', host.allocator.name, estimate)

        return (host, estimate, criteria)
Get (estimate, criteria) from an allocator.
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/resource.py/ClusterAllocator._get_estimate