def parse_query_output(cls, out):
        """
        Example output to parse:
        141914132 user_name DONE queue_name exec_host b63cee711a job_name Feb 8 14:54
        """
        query_data = {}

        for line in out.strip().split("\n"):
            parts = line.split()
            if len(parts) < 6:
                continue

            job_id = parts[0]
            status_flag = parts[2]

            # map the status
            status = cls.map_status(status_flag)

            # save the result
            query_data[job_id] = cls.job_status_dict(job_id=job_id, status=status)

        return query_data
def parse_query_output ( cls , out ) : query_data = { } for line in out . strip ( ) . split ( "\n" ) : parts = line . split ( ) if len ( parts ) < 6 : continue job_id = parts [ 0 ] status_flag = parts [ 2 ] status = cls . map_status ( status_flag ) query_data [ job_id ] = cls . job_status_dict ( job_id = job_id , status = status ) return query_data
Example output to parse:
        141914132 user_name DONE queue_name exec_host b63cee711a job_name Feb 8 14:54