@classmethod
@db.transactional
def mark_deleted(cls, ticket):
    task = cls._get_or_raise_not_found_error(ticket)
    task.status = _ExternalTask.DELETED
    db.put(task)
@classmethod
@db.transactional
def mark_deleted(cls, ticket):
    task = cls._get_or_raise_not_found_error(ticket)
    task.status = _ExternalTask.DELETED
    db.put(task)