def retry(self):
    assert (self.instance.status == self.instance.STATUS_ERROR)
    self.instance.status = self.instance.STATUS_INSTANTIATED
    self.instance.finished_at = None
    self.instance.save()
    self.start()
def retry(self):
    assert (self.instance.status == self.instance.STATUS_ERROR)
    self.instance.status = self.instance.STATUS_INSTANTIATED
    self.instance.finished_at = None
    self.instance.save()
    self.start()