From c0e5e1209a5486d5a41acc2f4657c92ccbad4240 Mon Sep 17 00:00:00 2001 From: Eric Vaandering Date: Fri, 21 Nov 2014 13:36:28 -0600 Subject: [PATCH] Also fetch McM data if total events is defined and approval time is not --- src/python/WMCore/WMDataMining/Utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/python/WMCore/WMDataMining/Utils.py b/src/python/WMCore/WMDataMining/Utils.py index 8cdcc7ddd7..47dea5f40f 100644 --- a/src/python/WMCore/WMDataMining/Utils.py +++ b/src/python/WMCore/WMDataMining/Utils.py @@ -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