

def _update_state(self):
    'Updates the state of the resource.'
    status = self._get_status()
    self._pending = status['pending']
    self._running = status['running']
    self._finished = status['finished']
    self._succeeded = self['succeeded']
    self._failed = status['failed']
    self._error = status['error']
    self._last_updated = datetime.datetime.now()
    return status

dataset/ETHPy150Open s3rvac/retdec-python/retdec/resource.py Resource._update_state/VarMisuse@51/79 `status`->`self`