本文整理汇总了Python中Job.Job.getAthenaMPCommand方法的典型用法代码示例。如果您正苦于以下问题:Python Job.getAthenaMPCommand方法的具体用法?Python Job.getAthenaMPCommand怎么用?Python Job.getAthenaMPCommand使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Job.Job
的用法示例。
在下文中一共展示了Job.getAthenaMPCommand方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: str
# 需要导入模块: from Job import Job [as 别名]
# 或者: from Job.Job import getAthenaMPCommand [as 别名]
from Job import Job
from EventServerJobManager import EventServerJobManager
#eventRange = str({'eventRangeID': '4078809-2254021619-92559356-1001-3', 'LFN': 'EVNT.01461041._000001.pool.root.1', 'lastEvent': 1001, 'startEvent': 1001, 'GUID': 'BABC9918-743B-C742-9049-FC3DCC8DD774'})
#eventRange = str([{u'eventRangeID': u'4078809-2254021619-92559356-1001-3', u'LFN': u'EVNT.01461041._000001.pool.root.1', u'lastEvent': 1001, u'startEvent': 1001, u'GUID': u'BABC9918-743B-C742-9049-FC3DCC8DD774'}])
#eventRange = str([{u'eventRangeID': u'4098297-2257969310-105151393-1001-3', u'LFN': u'EVNT.01461041._000001.pool.root.1', u'lastEvent': 1001, u'startEvent': 1001, u'GUID': u'BABC9918-743B-C742-9049-FC3DCC8DD774'}])
#eventRange = "No more events"
eventRange = {u'eventRangeID': u'4078809-2254021619-92559356-1001-3', u'LFN': u'EVNT.01461041._000001.pool.root.1', u'lastEvent': 1001, u'startEvent': 1001, u'GUID': u'BABC9918-743B-C742-9049-FC3DCC8DD774'}
job = Job()
test = EventServerJobManager()
try:
test.initMessageThread(socketname='EventService_EventRanges', context='local')
test.initTokenExtractorProcess(job.getTokenExtractorCmd())
test.initAthenaMPProcess(job.getAthenaMPCommand())
except Exception, e:
print "Failed to init EventServerJobManager: %s" % str(e)
test.terminate()
i = 0
output_file = open("output_file", "w")
while not test.isDead():
if test.isNeedMoreEvents():
i += 1
if i == 3:
test.insertEventRange("No more events")
else:
test.insertEventRange(eventRange)