parameters: (self, task_id)
docstring: Log guest start.
          @param task_id: task id
          @return: guest status
docstring_summary: Log guest start.
docstring_tokens: Log guest start .
function: def guest_get_status(self, task_id):
          """Log guest start.
          @param task_id: task id
          @return: guest status
          """
          session = self.Session()
          try:
              guest = session.query(Guest).filter_by(task_id=task_id).first()
              return guest.status if guest else None
          except SQLAlchemyError as e:
              log.exception("Database error logging guest start: {0}".format(e))
              session.rollback()
              return
          finally:
              session.close()
function_tokens: def guest_get_status ( self , task_id ) : session = self . Session ( ) try : guest = session . query ( Guest ) . filter_by ( task_id = task_id ) . first ( ) return guest . status if guest else None except SQLAlchemyError as e : log . exception ( "Database error logging guest start: {0}" . format ( e ) ) session . rollback ( ) return finally : session . close ( )