Beispiel #1
0
    def queue_table(self, project_only=True, recursive=True):
        """
        Display the queuing system table as pandas.Dataframe

        Args:
            project_only (bool): Query only for jobs within the current project - True by default
            recursive (bool): Include jobs from sub projects

        Returns:
            pandas.DataFrame: Output from the queuing system - optimized for the Sun grid engine
        """
        return queue_table(job_ids=self.get_job_ids(recursive=recursive), project_only=project_only)
Beispiel #2
0
    def queue_table_global(self):
        """
        Display the queuing system table as pandas.Dataframe

        Returns:
            pandas.DataFrame: Output from the queuing system - optimized for the Sun grid engine
        """
        df = queue_table(job_ids=[], project_only=False)
        if len(df) != 0:
            return pandas.DataFrame([self.db.get_item_by_id(int(str(queue_ID).replace('pi_', '').replace('.sh', '')))
                                     for queue_ID in df['jobname']
                                     if str(queue_ID).startswith('pi_')])
        else:
            return None
Beispiel #3
0
    def queue_table_global(self, full_table=False):
        """
        Display the queuing system table as pandas.Dataframe

        Args:
            full_table (bool): Whether to show the entire pandas table

        Returns:
            pandas.DataFrame: Output from the queuing system - optimized for the Sun grid engine
        """
        df = queue_table(job_ids=[], project_only=False, full_table=full_table)
        if len(df) != 0 and self.db is not None:
            return pandas.DataFrame([
                self.db.get_item_by_id(
                    int(str(queue_ID).replace("pi_", "").replace(".sh", "")))
                for queue_ID in df["jobname"]
                if str(queue_ID).startswith("pi_")
            ])
        else:
            return None