Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Commit be05ec1

Browse files
committed
Remove phedex check except for checkor and htmlor
1 parent f1788bd commit be05ec1

3 files changed

Lines changed: 21 additions & 6 deletions

File tree

Unified/checkor.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ def checkor(url, spec=None, options=None):
5454
use_mcm = True
5555
up = componentInfo(soft=['mcm','wtc'])
5656
if not up.check(): return
57+
#phedex check
58+
try:
59+
print "checking on phedex"
60+
cust = findCustodialLocation(phedex_url,'/TTJets_mtop1695_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8/RunIIWinter15GS-MCRUN2_71_V1-v1/GEN-SIM')
61+
except Exception as e:
62+
print "fail phedex fail"
63+
return
64+
5765
use_mcm = up.status['mcm']
5866

5967
now_s = time.mktime(time.gmtime())

Unified/htmlor.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ def htmlor( caller = ""):
1616

1717
up = componentInfo(soft=['mcm','wtc','jira'])
1818
if not up.check(): return
19+
#phedex check
20+
try:
21+
print "checking on phedex"
22+
cust = findCustodialLocation(phedex_url,'/TTJets_mtop1695_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8/RunIIWinter15GS-MCRUN2_71_V1-v1/GEN-SIM')
23+
except Exception as e:
24+
print "fail phedex fail"
25+
return
1926

2027
for backup in ['statuses.json','siteInfo.json','listProtectedLFN.txt','equalizor.json']:
2128
print "copying",backup,"to old location"

utils.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,7 @@ def __init__(self, block=True, mcm=None, soft=None, keep_trying=False):
10611061
'reqmgr' : False,
10621062
'mcm' : False,
10631063
'dbs' : False,
1064-
'phedex' : False,
1064+
# 'phedex' : False,
10651065
'cmsr' : False,
10661066
'wtc' : False,
10671067
'eos' : False,
@@ -1102,11 +1102,11 @@ def check_dbs(self):
11021102
if not blocks:
11031103
raise Exception("dbs corrupted")
11041104

1105-
def check_phedex(self):
1106-
if 'testbed' in dbs_url:
1107-
cust = findCustodialLocation(phedex_url,'/TTJets_mtop1695_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8/RunIIWinter15GS-MCRUN2_71_V1-v1/GEN-SIM')
1108-
else:
1109-
cust = findCustodialLocation(phedex_url,'/TTJets_mtop1695_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8/RunIIWinter15GS-MCRUN2_71_V1-v1/GEN-SIM')
1105+
# def check_phedex(self):
1106+
# if 'testbed' in dbs_url:
1107+
# cust = findCustodialLocation(phedex_url,'/TTJets_mtop1695_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8/RunIIWinter15GS-MCRUN2_71_V1-v1/GEN-SIM')
1108+
# else:
1109+
# cust = findCustodialLocation(phedex_url,'/TTJets_mtop1695_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8/RunIIWinter15GS-MCRUN2_71_V1-v1/GEN-SIM')
11101110

11111111
def check_wtc(self):
11121112
from wtcClient import wtcClient

0 commit comments

Comments
 (0)