autosubmit.monitor#
Autosubmit monitor.
- class autosubmit.monitor.monitor.Monitor(edge_info: dict[str, Any] | None = None)#
Class to handle monitoring of Jobs at HPC.
- Variables:
edge_info – Dictionary with edge information between jobs.
nodes_plotted – Set of nodes that have already been plotted.
- create_tree_list(expid: str, joblist: list[Job], packages: list[WrapperJob], groups: dict[str, list[Job] | dict], hide_groups: bool = False) py3dotplus.Dot#
Create graph from joblist.
- Parameters:
expid – Experiment identifier.
joblist – Job list to plot.
packages – List of wrapper jobs.
groups – Dictionary with grouping information.
hide_groups – If
True, hide groups in the visualization.
- Returns:
Created graph object.
- generate_output(expid: str, joblist: list[Job], path: str, output_format: str = 'pdf', packages: list[WrapperJob] | None = None, show: bool = False, groups: dict[str, Any] | None = None, hide_groups: bool = False, job_list_object=None) None#
Plot graph for joblist and store it in a file.
- Parameters:
expid – Experiment identifier.
joblist – List of jobs to plot.
path – Path to the experiment.
output_format – File format for plot.
packages – List of wrapper jobs.
show – If
True, will open the new plot with the default viewer.groups – Dictionary with grouping information.
hide_groups – If
True, hide groups in the visualization.job_list_object – Object that has the main txt generation method.
- Raises:
AutosubmitCritical – Raised when an unsupported format is requested.
- generate_output_stats(expid: str, joblist: list[Job], output_format: str = 'pdf', hide: bool = False, section_summary: bool = False, jobs_summary: bool = False, period_ini: datetime | None = None, period_fi: datetime | None = None, queue_time_fixes: dict[str, int] | None = None) bool#
Plot stats for joblist and store it in a file.
- Parameters:
expid – Experiment identifier.
joblist – Job list to plot.
output_format – File format for plot.
hide – If
True, will not open the new plot(s) with the default viewer.section_summary – If
True, will plot a summary of the experiment.jobs_summary – If
True, will plot a list of jobs summary.period_ini – Initial datetime of filtered period.
period_fi – Final datetime of filtered period.
queue_time_fixes – Dictionary with queue time fixes for specific jobs.
- Returns:
Trueif the report was generated successfully,Falseotherwise.
- generate_output_txt(expid: str, joblist: list[Job], path: str, classictxt: bool = False, job_list_object=None) None#
Generate a representation of the jobs in a txt file.
- Parameters:
expid – Experiment identifier.
joblist – Experiment’s list of jobs.
path – Path to the experiment.
classictxt – If
True, generate classic text format.job_list_object – Object that has the main txt generation method.
- autosubmit.monitor.monitor.clean_plot(expid: str) None#
Clean space on
BasicConfig.LOCAL_ROOT_DIR/<expid>/plotdirectory.Removes all plots except the last two.
- Parameters:
expid – Experiment identifier.
- autosubmit.monitor.monitor.clean_stats(expid: str) None#
Clean space on
BasicConfig.LOCAL_ROOT_DIR/<expid>/statsdirectory.Removes all stats except the last two.
- Parameters:
expid – Experiment identifier.