'Mark this _WorkItem as failed, updating the progress database.'

def MarkAsError(self):

    self._AssertInState(STATE_GETTING)
    self._AssertProgressKey()
    self._StateTransition(STATE_ERROR, blocking=True)
