trains/task.py
def flush(self, wait_for_uploads=False):
        """
        flush any outstanding reports or console logs

        :param wait_for_uploads: if True the flush will exit only after all outstanding uploads are completed
        :return: True
        """
        self._dev_mode_periodic()

        # make sure model upload is done
        if BackendModel.get_num_results() > 0 and wait_for_uploads:
            BackendModel.wait_for_results()

        # flush any outstanding logs
        if self._logger:
            # noinspection PyProtectedMember
            self._logger._flush_stdout_handler()
        self.reporter.flush()
        LoggerRoot.flush()

        return True

        flush any outstanding reports or console logs

        :param wait_for_uploads: if True the flush will exit only after all outstanding uploads are completed
        :return: True
        
flush any outstanding reports or console logs
flush any outstanding reports or console logs
def flush(self, wait_for_uploads=False):
        self._dev_mode_periodic()
        if BackendModel.get_num_results() > 0 and wait_for_uploads:
            BackendModel.wait_for_results()
        if self._logger:
            self._logger._flush_stdout_handler()
        self.reporter.flush()
        LoggerRoot.flush()
        return True
def flush ( self , wait_for_uploads = False ) : self . _dev_mode_periodic ( ) if BackendModel . get_num_results ( ) > 0 and wait_for_uploads : BackendModel . wait_for_results ( ) if self . _logger : self . _logger . _flush_stdout_handler ( ) self . reporter . flush ( ) LoggerRoot . flush ( ) return True
flush any outstanding reports or console logs
flush any outstanding reports or console logs
"""
        flush any outstanding reports or console logs

        :param wait_for_uploads: if True the flush will exit only after all outstanding uploads are completed
        :return: True
        """ # make sure model upload is done # flush any outstanding logs # noinspection PyProtectedMember
None
self
wait_for_uploads
if True the flush will exit only after all outstanding uploads are completed
if True the flush will exit only after all outstanding uploads are completed