Пример #1
0
def main():
    url = 'cmsweb.cern.ch'
    print "Gathering Requests"
    requests = closeOutWorkflows.getOverviewRequest()
    print "Classifying Requests"
    classifyRequests(url, requests)
    sys.exit(0)
def main():
	url='cmsweb.cern.ch'
	print "Gathering Requests"
	requests=closeOutWorkflows.getOverviewRequest()
	print "Classifying Requests"
	classifyRequests(url, requests)
	sys.exit(0);
Пример #3
0
def main():
    url = "cmsweb.cern.ch"
    siteList = ["CNAF", "FNAL", "IN2P3", "PIC", "KIT", "ASGC", "RAL"]
    # siteList=['ASGC']
    parser = optparse.OptionParser()
    parser.add_option("-n", "--number", help="Number of Requests", dest="number")
    parser.add_option("-t", "--type", help="Type of Requests", dest="type")
    parser.add_option("-s", "--status", help="Status of Requests", dest="status")
    (options, args) = parser.parse_args()
    statusList = ["assignment-approved", "acquired", "running", "completed", "closed-out"]
    if not options.status:
        statusList = ["assignment-approved", "acquired", "running", "completed", "closed-out"]
    else:
        statusList = [options.status]
    historic = dict([(site, dict([(status, []) for status in statusList])) for site in siteList])
    noNameSites = dict([(status, []) for status in statusList])
    numrequests = -1  # It will print all the requests
    if not options.number:
        numrequests = -1
    else:
        numrequests = options.number
    requestType = "ReDigi"
    if not options.type:  # The type of request default will be redigi
        requestType = "ReDigi"
    else:
        requestType = options.type
    print "Number of requests :" + str(numrequests)
    print "Type requested: " + requestType
    print "Gathering request"
    requests = closeOutWorkflows.getOverviewRequest()
    print "Classifying requests"
    classifyRequests(url, requests, historic, noNameSites, requestType)
    print "Printing Requests"
    printTopRequests(historic, noNameSites, int(numrequests))
    sys.exit(0)
Пример #4
0
def main():
	url='cmsweb.cern.ch'	
	siteList=['CNAF', 'FNAL', 'IN2P3', 'PIC', 'KIT', 'ASGC', 'RAL']
	#siteList=['ASGC']
	parser = optparse.OptionParser()
	parser.add_option('-n', '--number', help='Number of Requests',dest='number')
	parser.add_option('-t', '--type', help='Type of Requests',dest='type')
	parser.add_option('-s', '--status', help='Status of Requests',dest='status')
	(options,args) = parser.parse_args()
	statusList=['assignment-approved','acquired', 'running', 'completed', 'closed-out']
	if not options.status:
		statusList=['assignment-approved','acquired', 'running', 'completed', 'closed-out']
	else:
		statusList = [options.status]
	historic=dict([(site, dict([(status, []) for status in statusList])) for site in siteList])
	noNameSites=dict([(status,[]) for status in statusList])
	numrequests=-1 # It will print all the requests
	if not options.number:
		numrequests=-1
	else:
		numrequests=options.number
	requestType='ReDigi'
	if not options.type:# The type of request default will be redigi
		requestType='ReDigi'
	else:
		requestType=options.type 
	print "Number of requests :"+str(numrequests)
	print "Type requested: "+requestType
       	print "Gathering request"
	requests=closeOutWorkflows.getOverviewRequest()
	print "Classifying requests"
	classifyRequests(url, requests, historic, noNameSites, requestType)
	print "Printing Requests"
	printTopRequests(historic, noNameSites, int(numrequests))
	sys.exit(0);
Пример #5
0
def main():
	url='cmsweb.cern.ch'	
	siteList=['CNAF', 'FNAL', 'IN2P3', 'PIC', 'KIT', 'ASGC', 'RAL']
	#siteList=['ASGC']
	parser = optparse.OptionParser()
	parser.add_option('-n', '--number', help='Number of Requests',dest='number')
	parser.add_option('-t', '--type', help='Type of Requests',dest='type')
	parser.add_option('-s', '--status', help='Status of Requests',dest='status')
	(options,args) = parser.parse_args()
	statusList=['assignment-approved','acquired', 'running', 'completed', 'closed-out']
	if not options.status:
		statusList=['assignment-approved','acquired', 'running', 'completed', 'closed-out']
	else:
		statusList = [options.status]
	historic=dict([(site, dict([(status, []) for status in statusList])) for site in siteList])
	noNameSites=dict([(status,[]) for status in statusList])
	numrequests=-1 # It will print all the requests
	if not options.number:
		numrequests=-1
	else:
		numrequests=options.number
	requestType='ReDigi'
	if not options.type:# The type of request default will be redigi
		requestType='ReDigi'
	else:
		requestType=options.type 
	print "Number of requests :"+str(numrequests)
	print "Type requested: "+requestType
       	print "Gathering request"
	requests=closeOutWorkflows.getOverviewRequest()
	print "Classifying requests"
	classifyRequests(url, requests, historic, noNameSites, requestType)
	print "Printing Requests"
	printTopRequests(historic, noNameSites, int(numrequests))
	sys.exit(0);
def main():
	url='cmsweb.cern.ch'
	print "Gathering Requests"
	requests=closeOutWorkflows.getOverviewRequest()
	print "Classifying Requests"
	datasetsUnsuscribed=classifyRunningRequests(url, requests)
	print
	print datasetsUnsuscribed
	print "Making Suscription"
	makeSubscriptions(url, datasetsUnsuscribed)
	sys.exit(0);
def main():
    url = 'cmsweb.cern.ch'
    print "Gathering Requests"
    requests = closeOutWorkflows.getOverviewRequest()
    print "Classifying Requests"
    datasetsUnsuscribed = classifyRunningRequests(url, requests)
    print
    print datasetsUnsuscribed
    print "Making Suscription"
    makeSubscriptions(url, datasetsUnsuscribed)
    sys.exit(0)