Skip to content

Commit

Permalink
Also fetch McM data if total events is defined and approval time is not
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvaandering authored and ticoann committed Dec 2, 2014
1 parent d6f36c4 commit c0e5e12
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/python/WMCore/WMDataMining/Utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ def gatherWMDataMiningStats(wmstatsUrl, reqmgrUrl, wmMiningUrl,
pass # ReqMgr no longer has the workflow
report[wf].update({'filterEfficiency':filterEfficiency, 'runWhiteList':runWhiteList})

if not oldCouchDoc.has_key('mcmTotalEvents') or not oldCouchDoc.has_key('mcmApprovalTime'):
if (not oldCouchDoc.has_key('mcmTotalEvents') or
not oldCouchDoc.has_key('mcmApprovalTime') or
(oldCouchDoc.get('mcmTotalEvents', 'Unknown') != 'Unknown'
and oldCouchDoc.get('mcmApprovalTime', 'Unknown') == 'Unknown')):
prepID = oldCouchDoc.get('prepID', None)
if prepID and nMCMCalls <= maxMCMCalls:
nMCMCalls += 1
Expand Down

0 comments on commit c0e5e12

Please sign in to comment.