qcg.pilotjob.api.jobinfo module

class qcg.pilotjob.api.jobinfo.JobInfo

Bases: object

Object to store parsed job informations.

name

job name

Type

str

status

job status

Type

str

nodes

dictionary with node names and list of allocated cores

Type

dict(str, int[]), optional

total_cores

number of total allocated cores

Type

int

wdir

working directory path

Type

str

time

job run time

Type

timedelta, optional

iteration

iteration index

Type

int, optional

iterations

info about iterations

Type

dict, optional

childs

a list of child jobs

Type

JobInfo[], optional

history

list of job status change moments

Type

str[], optional

messages
Type

str

static from_child(job_name, child_data)

Parse information about a sub job.

Parameters
  • job_name (str) – job name

  • child_data (dict) – element of ‘childs’ from job info response

Returns

instance of job info

Return type

JobInfo

static from_job(job_data)

Parse job info response.

Parameters

job_data (dict) – job information obtained with jobInfo request

Returns

parsed information

Return type

JobInfo