qcg.pilotjob.utils.auxdir module¶
-
qcg.pilotjob.utils.auxdir.
is_aux_dir
(path)¶ Check if given path can be an auxiliary directory. The name pattern and type (directory) is checked.
Parameters: path (str) – path to check Returns: an absolute path if given path exists, is directory and name matches the auxiliary pattern, else None Return type: str
-
qcg.pilotjob.utils.auxdir.
find_aux_dirs
(path)¶ Find in given path directories which names matches auxiliary directory name pattern.
Parameters: path (str) – path where auxiliary directories will be searched Returns: list of paths with directories matches auxiliary name pattern Return type: list(str)
-
qcg.pilotjob.utils.auxdir.
find_single_aux_dir
(path)¶ Find exactly one auxiliary directory in given path, in other case raise exception.
Parameters: path (str) – path where to find auxiliary directory Returns: auxiliary directory path in given path Return type: str
-
qcg.pilotjob.utils.auxdir.
find_latest_aux_dir
(path)¶ Find exactly one, the last modified, auxiliary directory in given path, in other case raise exception.
Parameters: path (str) – path where to find auxiliary directory Returns: auxiliary directory path in given path Return type: str
-
qcg.pilotjob.utils.auxdir.
find_report_files
(path)¶ Find all files named jobs.report in qcg-pilotjob auxiliary directories in given path. First we look for auxilary directories, and then in those dirs we look for jobs.report files.
Parameters: path (str) – path to directory where to look for report files Returns: list of all jobs.report files in given path. Return type: list(str)
-
qcg.pilotjob.utils.auxdir.
find_final_status_files
(path)¶ Find all files named final_status.json in qcg-pilotjob auxiliary directories in given path. First we look for auxilary directories, and then in those dirs we look for final_status.json files.
Parameters: path (str) – path to directory where to look for report files Returns: list of all final_status.json files in given path. Return type: list(str)
-
qcg.pilotjob.utils.auxdir.
find_log_files
(path)¶ Find all files named service.log in qcg-pilotjob auxiliary directories in given path. First we look for auxilary directories, and then in those dirs we look for service.log files.
Parameters: path (str) – path to directory where to look for log files Returns: list of all service.log files in given path. Return type: list(str)
-
qcg.pilotjob.utils.auxdir.
find_proc_traces_files
(path)¶ Find in given path files which names matches processes trace log name pattern.
Parameters: path (str) – path where processes trace logs will be searched Returns: list of paths with files matches processes trace logs name pattern Return type: list(str)
-
qcg.pilotjob.utils.auxdir.
find_rtimes_files
(path)¶ Find in given path files which names matches processes real times log name pattern.
Parameters: path (str) – path where real times logs will be searched Returns: list of paths with files matches processes real times logs name pattern Return type: list(str)