@classmethod
def create(cls, user_id=None):
    'Creates task and returns ticket string.'
    task = _ExternalTask(status=_ExternalTask.CREATED, user_id=user_id)
    return _ExternalTask.get_ticket_by_key(db.put(task))
Creates task and returns ticket string.
@classmethod
def create(cls, user_id=None):
    
    task = _ExternalTask(status=_ExternalTask.CREATED, user_id=user_id)
    return _ExternalTask.get_ticket_by_key(db.put(task))