def host_service_caps_stale(self, host, service):
        """Check if host service capabilites are not recent enough."""
        allowed_time_diff = FLAGS.periodic_interval * 3
        caps = self.service_states[host][service]
        if (utils.utcnow() - caps["timestamp"]) <= \
            datetime.timedelta(seconds=allowed_time_diff):
            return False
        return True
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/scheduler/zone_manager.py/ZoneManager.host_service_caps_stale/original