Beispiel #1
0
 def _ls_task_logs(self, application_id=None, job_id=None, output_dir=None):
     """Yield task log matches."""
     # logging messages are handled by a callback in _interpret_task_logs()
     for match in _ls_task_logs(self.fs,
                                self._stream_task_log_dirs(
                                    application_id=application_id,
                                    output_dir=output_dir),
                                application_id=application_id,
                                job_id=job_id):
         yield match
Beispiel #2
0
 def mock_path_matches(self):
     mock_log_dir_stream = [['MOCK_LOG_DIR']]  # _ls_logs() needs this
     return _ls_task_logs(self.mock_fs, mock_log_dir_stream)
Beispiel #3
0
 def _ls_paths(self, log_dir_stream, **kwargs):
     return [m['path'] for m in
             _ls_task_logs(self.mock_fs, log_dir_stream, **kwargs)]
Beispiel #4
0
 def mock_path_matches(self):
     mock_log_dir_stream = [['MOCK_LOG_DIR']]  # _ls_logs() needs this
     return _ls_task_logs(self.mock_fs, mock_log_dir_stream)
Beispiel #5
0
 def _ls_paths(self, log_dir_stream, **kwargs):
     return [m['path'] for m in
             _ls_task_logs(self.mock_fs, log_dir_stream, **kwargs)]