本文整理汇总了Python中userinterface.Client.runTaskAssignment方法的典型用法代码示例。如果您正苦于以下问题:Python Client.runTaskAssignment方法的具体用法?Python Client.runTaskAssignment怎么用?Python Client.runTaskAssignment使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类userinterface.Client
的用法示例。
在下文中一共展示了Client.runTaskAssignment方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: FileSpec
# 需要导入模块: from userinterface import Client [as 别名]
# 或者: from userinterface.Client import runTaskAssignment [as 别名]
#job.cloud = "UK"
job.taskID = i
file = FileSpec()
file.lfn = "%s.evgen.pool.root" % job.jobName
file.destinationDBlock = job.destinationDBlock
file.destinationSE = job.destinationSE
file.dataset = job.destinationDBlock
#file.destinationDBlockToken = 'ATLASDATADISK'
file.type = 'output'
job.addFile(file)
fileOL = FileSpec()
fileOL.lfn = "%s.job.log.tgz" % job.jobName
fileOL.destinationDBlock = job.destinationDBlock
fileOL.destinationSE = job.destinationSE
fileOL.dataset = job.destinationDBlock
fileOL.type = 'log'
job.addFile(fileOL)
job.jobParameters="7087 0 500000 1 DC3.007087.singlepart_fwdgamma_etaplus_E500.py %s NONE NONE NONE" % file.lfn
jobList.append(job)
for i in range(1):
#s,o = Client.submitJobs(jobList)
s,outS = Client.runTaskAssignment(jobList)
print "---------------------"
print s
for tmpOut in outS:
print tmpOut