本文整理汇总了Python中Ganga.Lib.LCG.Grid.cream_submit方法的典型用法代码示例。如果您正苦于以下问题:Python Grid.cream_submit方法的具体用法?Python Grid.cream_submit怎么用?Python Grid.cream_submit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Ganga.Lib.LCG.Grid
的用法示例。
在下文中一共展示了Grid.cream_submit方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: process
# 需要导入模块: from Ganga.Lib.LCG import Grid [as 别名]
# 或者: from Ganga.Lib.LCG.Grid import cream_submit [as 别名]
def process(self, jdl_info):
my_sj_id = jdl_info[0]
my_sj_jdl = jdl_info[1]
my_sj_jid = Grid.cream_submit(my_sj_jdl, self.ce, self.delid)
if not my_sj_jid:
return False
else:
self.__appendResult__(my_sj_id, my_sj_jid)
return True
示例2: submit
# 需要导入模块: from Ganga.Lib.LCG import Grid [as 别名]
# 或者: from Ganga.Lib.LCG.Grid import cream_submit [as 别名]
def submit(self, subjobconfig, master_job_sandbox):
'''Submit the job to the grid'''
ick = False
jdlpath = self.preparejob(subjobconfig, master_job_sandbox)
if jdlpath:
self.id = Grid.cream_submit(jdlpath, self.CE, self.delegation_id)
if self.id:
self.actualCE = self.CE
ick = True
return ick
示例3: resubmit
# 需要导入模块: from Ganga.Lib.LCG import Grid [as 别名]
# 或者: from Ganga.Lib.LCG.Grid import cream_submit [as 别名]
def resubmit(self):
'''Resubmit the job'''
ick = False
job = self.getJobObject()
jdlpath = job.getInputWorkspace().getPath("__jdlfile__")
if jdlpath:
self.id = Grid.cream_submit(jdlpath, self.CE, self.delegation_id)
if self.id:
# refresh the lcg job information
self.__refresh_jobinfo__(job)
self.actualCE = self.CE
ick = True
return ick