def _update_state(self):
        status = self._get_status()
        self._pending = status['pending']
        self._running = status['running']
        self._finished = status['finished']
        self._succeeded = status['succeeded']
        self._failed = status['failed']
        self._error = status['error']
        self._last_updated = datetime.datetime.now()
        return status
Updates the state of the resource.
dataset/ETHPy150Open s3rvac/retdec-python/retdec/resource.py/Resource._update_state