autosubmit.monitor#

Autosubmit monitor.

class autosubmit.monitor.monitor.Monitor#

Class to handle monitoring of Jobs at HPC.

create_tree_list(expid: str, joblist: list[Job], packages: list[Tuple[str, str, str, str]], groups: dict[str, list[Job] | dict], hide_groups=False) py3dotplus.Dot#

Create graph from joblist

Parameters:
  • hide_groups

  • groups

  • packages

  • expid (str) – experiment’s identifier

  • joblist (JobList) – joblist to plot

Returns:

created graph

Return type:

pydotplus.Dot

generate_output(expid: str, joblist: list[Job], path: str, output_format='pdf', packages=None, show=False, groups=None, hide_groups=False, job_list_object=None) None#

Plots graph for joblist and stores it in a file

Parameters:
  • hide_groups

  • groups

  • packages

  • path

  • expid (str) – experiment’s identifier

  • joblist (List of Job objects) – list of jobs to plot

  • output_format (str (png, pdf, ps)) – file format for plot

  • show (bool) – if true, will open the new plot with the default viewer

  • job_list_object (JobList object) – Object that has the main txt generation method

generate_output_stats(expid: str, joblist: list[Job], output_format='pdf', hide=False, section_summary=False, jobs_summary=False, period_ini: datetime | None = None, period_fi: datetime | None = None, queue_time_fixes: dict[str, int] | None = None) bool#

Plots stats for joblist and stores it in a file.

Parameters:
  • queue_time_fixes

  • expid (str) – experiment’s identifier

  • joblist (JobList) – joblist to plot

  • output_format (str (png, pdf, ps)) – file format for plot

  • hide (bool) – if True will not open the new plot(s) with the default viewer

  • section_summary (bool) – if true, will plot a summary of the experiment

  • jobs_summary (bool) – if true, will plot a list of jobs summary

  • hide – if true, will hide the plot

  • period_ini (datetime) – initial datetime of filtered period

  • period_fi (datetime) – final datetime of filtered period

Returns:

True if the report was generated successfully or False otherwise

Return type:

bool

generate_output_txt(expid: str, joblist: list[Job], path: str, classictxt=False, job_list_object=None) None#

Function that generates a representation of the jobs in a txt file :param classictxt: :param path: :param expid: experiment’s identifier :type expid: str :param joblist: experiment’s list of jobs :type joblist: list :param job_list_object: Object that has the main txt generation method :type job_list_object: JobList object

autosubmit.monitor.monitor.clean_plot(expid: str) None#

Function to clean space on BasicConfig.LOCAL_ROOT_DIR/plot directory.

Removes all plots except the last two.

Parameters:

expid (str) – experiment’s identifier

autosubmit.monitor.monitor.clean_stats(expid: str) None#

Function to clean space on BasicConfig.LOCAL_ROOT_DIR/plot directory. Removes all stats’ plots except the last two.

Parameters:

expid (str) – experiment’s identifier