solvebio/resource/task.py
def cancel(self):
        """ Cancel a task """
        _status = self.status
        self.status = "canceled"
        try:
            self.save()
        except:
            # Reset status to what it was before
            # status update failure
            self.status = _status
            raise
def cancel(self):
        _status = self.status
        self.status = "canceled"
        try:
            self.save()
        except:
            # Reset status to what it was before
            # status update failure
            self.status = _status
            raise
def cancel ( self ) : _status = self . status self . status = "canceled" try : self . save ( ) except : # Reset status to what it was before # status update failure self . status = _status raise
Cancel a task
Cancel a task