def wait(self):
        if self.decisions._data:
            raise TaskWait

        with self.handler.pop() as step:
            if not step:
                return
            if step.status() in ['Failed', 'TimedOut']:
                if step.should_retry():
                    step.retry(self.decisions)
                    raise TaskWait
                else:
                    error = step.error()
                    step.is_checked = True
                    raise TaskError(error.reason, error.details)
            else:
                return step.result()
Create test portgroup entry in DB and return Portgroup DB object.
dataset/ETHPy150Open KKBOX/mass/mass/scheduler/swf/__init__.py/SWFDecider.wait--crossover with--dataset/ETHPy150Open openstack/ironic/ironic/tests/unit/db/utils.py/create_test_portgroup