14 from __future__
import absolute_import
15 from __future__
import print_function
17 import project_utilities
19 from project_modules.jobsuberror
import JobsubError
20 from larbatch_utilities
import convert_str
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:
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')