def ls_history_logs(): # there should be at most one history log for match in _ls_history_logs(self.fs, stream_history_log_dirs(), job_id=job_id): log.info('Found history log: %s' % match['path']) yield match
def _ls_history_logs(self, job_id=None, output_dir=None): """Yield history log matches, logging a message for each one.""" for match in _ls_history_logs( self.fs, self._stream_history_log_dirs(output_dir=output_dir), job_id=job_id): log.info(' Parsing history log: %s' % match['path']) yield match
def ls_history_logs(): # there should be at most one history log for match in _ls_history_logs( self.fs, stream_history_log_dirs(), job_id=job_id): log.info('Found history log: %s' % match['path']) yield match