Note

This page is a reference documentation. It only explains the class signature, and not how to use it. Please refer to the user guide for the big picture.

hopla.slurm.SlurmInfoWatcher

class hopla.slurm.SlurmInfoWatcher(delay_s=60)[source]

Bases: InfoWatcher

An instance of this class is shared by all jobs, and is in charge of calling pbs to check status for all jobs at once.

Parameters:
delay_s: int, default 60

maximum delay before each non-forced call to the cluster.

__init__(delay_s=60)[source]
classmethod read_info(string)[source]

Reads the output of squeue and returns a dictionary containing main jobs information.

property update_command

Return the command to list jobs status.

property valid_status

Return the list of valid status.