Definition at line 32 of file batchstatus.py.
def python.batchstatus.BatchStatus.__init__ |
( |
|
self, |
|
|
|
projects |
|
) |
| |
Definition at line 36 of file batchstatus.py.
def update(self, projects)
def __init__(self, projects)
def python.batchstatus.BatchStatus.get_jobs |
( |
| ) |
|
|
static |
def python.batchstatus.BatchStatus.get_stage_status |
( |
|
self, |
|
|
|
stagename |
|
) |
| |
Definition at line 129 of file batchstatus.py.
131
def get_stage_status(self, stagename)
def python.batchstatus.BatchStatus.update |
( |
|
self, |
|
|
|
projects |
|
) |
| |
Definition at line 55 of file batchstatus.py.
59 for project
in projects:
60 if project.server !=
'-' and project.server !=
'':
61 server = project.server
62 for stage
in project.stages:
68 BatchStatus.update_jobs()
77 for project
in projects:
78 for stage
in project.stages:
79 workscript =
'%s-%s-%s.sh' % (stage.name, project.name, project.release_tag)
80 if script.find(workscript) == 0:
def update(self, projects)
def python.batchstatus.BatchStatus.update_jobs |
( |
| ) |
|
|
static |
Definition at line 97 of file batchstatus.py.
101 command = [
'jobsub_q']
103 command.append(
'--jobsub-server=%s' % server)
104 command.append(
'--group=%s' % project_utilities.get_experiment())
105 command.append(
'--user=%s' % project_utilities.get_user())
106 command.append(
'--role=%s' % project_utilities.get_role())
107 jobinfo = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
108 jobout, joberr = jobinfo.communicate()
116 jobs = jobout.split(
'\n')
python.batchstatus.BatchStatus.projects |
python.batchstatus.BatchStatus.stage_stats |
The documentation for this class was generated from the following file: