def wait_for_job(self, abort_on_error=False, wait_for_job_clean=False):
        status = self.get_job_info()
        if not status and abort_on_error:
            msg = _('libvirt error while requesting blockjob info.')
            raise exception.NovaException(msg)

        if wait_for_job_clean:
            job_ended = status.job == 0
        else:
            job_ended = status.cur == status.end

        return not job_ended
Deprecated in 1.2. Use hitcount.views.HitCountJSONView instead.
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/virt/libvirt/guest.py/BlockDevice.wait_for_job--crossover with--dataset/ETHPy150Open thornomad/django-hitcount/hitcount/views.py/update_hit_count_ajax