Skip to content

Commit

Permalink
Merge pull request #22476 from fabozzi/from-CMSSW_8_0_X_dasgoclient
Browse files Browse the repository at this point in the history
Using dasgoclient for das queries in runTheMatrix (80X)
  • Loading branch information
cmsbuild committed Mar 12, 2018
2 parents ba66d45 + 6b496a0 commit 297763f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Configuration/Applications/python/ConfigBuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def filesFromDASQuery(query,option="",s=None):
if count!=0:
print 'Sleeping, then retrying DAS'
time.sleep(100)
p = Popen('das_client %s --query "%s"'%(option,query), stdout=PIPE,shell=True)
p = Popen('dasgoclient %s --query "%s"'%(option,query), stdout=PIPE,shell=True)
pipe=p.stdout.read()
tupleP = os.waitpid(p.pid, 0)
eC=tupleP[1]
Expand Down
6 changes: 3 additions & 3 deletions Configuration/PyReleaseValidation/python/MatrixUtil.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ def das(self, das_options):
# take at most 5 queries, to avoid sinking das

# do if you have LS queries
# command = ";".join(["das_client.py %s --query '%s'" % (das_options, query) for query in self.queries()[:3] ])
command = ";".join(["das_client %s --query '%s'" % (das_options, query) for query in self.queries()[:3] ])
# command = ";".join(["dasgoclient.py %s --query '%s'" % (das_options, query) for query in self.queries()[:3] ])
command = ";".join(["dasgoclient %s --query '%s'" % (das_options, query) for query in self.queries()[:3] ])
command = "({0})".format(command)
else:
command = "das_client %s --query '%s'" % (das_options, self.queries()[0])
command = "dasgoclient %s --query '%s'" % (das_options, self.queries()[0])

# Run filter on DAS output
if self.ib_blacklist:
Expand Down
2 changes: 1 addition & 1 deletion Configuration/PyReleaseValidation/scripts/runTheMatrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def runSelected(opt):
action='store_true')

parser.add_option('--das-options',
help='Options to be passed to das_client.py.',
help='Options to be passed to dasgoclient.py.',
dest='dasOptions',
default="--limit 0",
action='store')
Expand Down

0 comments on commit 297763f

Please sign in to comment.