mixcoatl/platform/relational_database.py
def wait_for(self, status='RUNNING', callback = None):
        """Blocks execution until the current relational_database has status of :attr:`status`

        :param status: The status to expect before continuing *(i.e. `RUNNING` or `PAUSED`)*
        :type status: str.
        :param callback: Optional callback to be called with the final :class:`RelationalDatabase`` when ``status`` is reached
        :type callback: func.
        :raises: `RelationalDatabaseException`
        """
        if self.relational_database_id is None:
            raise RelationalDatabaseException('Must be called with an existing relational_database.')
        initial_status = self.status
        if self.last_error is None:
            if initial_status == status:
                return self
            while self.status != status:
                time.sleep(5)
                self.load()
                if self.last_error is not None:
                    raise RelationalDatabaseException(self.last_error)
                else:
                    continue
            if callback is not None:
                callback(self)
            else:
                return self
Blocks execution until the current relational_database has status of :attr:`status`

        :param status: The status to expect before continuing *(i.e. `RUNNING` or `PAUSED`)*
        :type status: str.
        :param callback: Optional callback to be called with the final :class:`RelationalDatabase`` when ``status`` is reached
        :type callback: func.
        :raises: `RelationalDatabaseException`
        
Blocks execution until the current relational_database has status of :attr:`status`
Blocks execution until the current relational_database has status of : attr : ` status `
def wait_for(self, status='RUNNING', callback = None):
        if self.relational_database_id is None:
            raise RelationalDatabaseException('Must be called with an existing relational_database.')
        initial_status = self.status
        if self.last_error is None:
            if initial_status == status:
                return self
            while self.status != status:
                time.sleep(5)
                self.load()
                if self.last_error is not None:
                    raise RelationalDatabaseException(self.last_error)
                else:
                    continue
            if callback is not None:
                callback(self)
            else:
                return self
def wait_for ( self , status = 'RUNNING' , callback = None ) : if self . relational_database_id is None : raise RelationalDatabaseException ( 'Must be called with an existing relational_database.' ) initial_status = self . status if self . last_error is None : if initial_status == status : return self while self . status != status : time . sleep ( 5 ) self . load ( ) if self . last_error is not None : raise RelationalDatabaseException ( self . last_error ) else : continue if callback is not None : callback ( self ) else : return self
Blocks execution until the current relational_database has status of :attr:`status`
Blocks execution until the current relational_database has status of : attr : ` status `
"""Blocks execution until the current relational_database has status of :attr:`status`

        :param status: The status to expect before continuing *(i.e. `RUNNING` or `PAUSED`)*
        :type status: str.
        :param callback: Optional callback to be called with the final :class:`RelationalDatabase`` when ``status`` is reached
        :type callback: func.
        :raises: `RelationalDatabaseException`
        """
None
self
status
The status to expect before continuing *
The status to expect before continuing *
callback
Optional callback to be called with the final :class:`RelationalDatabase`` when ``status`` is reached
Optional callback to be called with the final : class : ` RelationalDatabase ` ` when ` ` status ` ` is reached