本文整理汇总了Python中Ganga.GPIDev.Adapters.IBackend.IBackend.master_resubmit方法的典型用法代码示例。如果您正苦于以下问题:Python IBackend.master_resubmit方法的具体用法?Python IBackend.master_resubmit怎么用?Python IBackend.master_resubmit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Ganga.GPIDev.Adapters.IBackend.IBackend
的用法示例。
在下文中一共展示了IBackend.master_resubmit方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: master_resubmit
# 需要导入模块: from Ganga.GPIDev.Adapters.IBackend import IBackend [as 别名]
# 或者: from Ganga.GPIDev.Adapters.IBackend.IBackend import master_resubmit [as 别名]
def master_resubmit(self, rjobs):
'''Resubmit the master job to the grid'''
profiler = ElapsedTimeProfiler(getLogger(name='Profile.LCG'))
profiler.start()
job = self.getJobObject()
ick = False
if not job.master and len(job.subjobs) == 0:
# case 1: master job normal resubmission
logger.debug('rjobs: %s' % str(rjobs))
logger.debug('mode: master job normal resubmission')
ick = IBackend.master_resubmit(self, rjobs)
elif job.master:
# case 2: individual subjob resubmission
logger.debug('mode: individual subjob resubmission')
ick = IBackend.master_resubmit(self, rjobs)
else:
# case 3: master job bulk resubmission
logger.debug('mode: master job resubmission')
ick = self.master_bulk_resubmit(rjobs)
if not ick:
raise GangaException('ARC bulk submission failure')
profiler.check('job re-submission elapsed time')
return ick
示例2: master_resubmit
# 需要导入模块: from Ganga.GPIDev.Adapters.IBackend import IBackend [as 别名]
# 或者: from Ganga.GPIDev.Adapters.IBackend.IBackend import master_resubmit [as 别名]
def master_resubmit(self, rjobs):
'''Resubmit the master job to the grid'''
profiler = ElapsedTimeProfiler(getLogger(name='Profile.LCG'))
profiler.start()
job = self.getJobObject()
ick = False
# delegate proxy to CREAM CE
self.delegation_id = Grid.cream_proxy_delegation(self.CE, self.delegation_id)
if not self.delegation_id:
logger.warning('proxy delegation to %s failed' % self.CE)
if not job.master and len(job.subjobs) == 0:
# case 1: master job normal resubmission
logger.debug('rjobs: %s' % str(rjobs))
logger.debug('mode: master job normal resubmission')
ick = IBackend.master_resubmit(self, rjobs)
elif job.master:
# case 2: individual subjob resubmission
logger.debug('mode: individual subjob resubmission')
ick = IBackend.master_resubmit(self, rjobs)
else:
# case 3: master job bulk resubmission
logger.debug('mode: master job resubmission')
ick = self.master_bulk_resubmit(rjobs)
if not ick:
raise GangaException('CREAM bulk submission failure')
profiler.check('job re-submission elapsed time')
return ick
示例3: master_resubmit
# 需要导入模块: from Ganga.GPIDev.Adapters.IBackend import IBackend [as 别名]
# 或者: from Ganga.GPIDev.Adapters.IBackend.IBackend import master_resubmit [as 别名]
def master_resubmit(self, rjobs):
"""Resubmit the master job to the grid"""
profiler = ElapsedTimeProfiler(getLogger(name="Profile.LCG"))
profiler.start()
job = self.getJobObject()
ick = False
# delegate proxy to CREAM CE
if not grids["GLITE"].cream_proxy_delegation(self.CE):
logger.warning("proxy delegation to %s failed" % self.CE)
if not job.master and len(job.subjobs) == 0:
# case 1: master job normal resubmission
logger.debug("rjobs: %s" % str(rjobs))
logger.debug("mode: master job normal resubmission")
ick = IBackend.master_resubmit(self, rjobs)
elif job.master:
# case 2: individual subjob resubmission
logger.debug("mode: individual subjob resubmission")
ick = IBackend.master_resubmit(self, rjobs)
else:
# case 3: master job bulk resubmission
logger.debug("mode: master job resubmission")
ick = self.master_bulk_resubmit(rjobs)
if not ick:
raise GangaException("CREAM bulk submission failure")
profiler.check("job re-submission elapsed time")
return ick