[Gug-cvs] gug/gug/service/jc jc.py,1.63,1.64
Status: Planning
Brought to you by:
szferi
From: Adrian T. <cs...@us...> - 2007-09-27 10:36:11
|
Update of /cvsroot/gug/gug/gug/service/jc In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv23476/gug/service/jc Modified Files: jc.py Log Message: Adding Decision Maker module It is Integrated into the following services: Sched, CM, StM Index: jc.py =================================================================== RCS file: /cvsroot/gug/gug/gug/service/jc/jc.py,v retrieving revision 1.63 retrieving revision 1.64 diff -C2 -d -r1.63 -r1.64 *** jc.py 30 Apr 2007 20:23:36 -0000 1.63 --- jc.py 27 Sep 2007 10:36:06 -0000 1.64 *************** *** 761,764 **** --- 761,766 ---- def _get_description(self, site_id): try: + new_jobs = len(self.jcids.select({'state' : [BES_OVERALL_STATE_NEW, \ + BES_OVERALL_STATE_STAGED_IN, BES_OVERALL_STATE_STARTING]})) return """<?xml version='1.0'?> <ServiceDescription> *************** *** 777,781 **** %s </ServiceDescription>""" % (site_id, self.capabilities, \ ! self.lrms.get_ce_data(), \ self.rt.get_disk_data(), self._get_gis_plugins_data()) --- 779,783 ---- %s </ServiceDescription>""" % (site_id, self.capabilities, \ ! self.lrms.get_ce_data(new_jobs), \ self.rt.get_disk_data(), self._get_gis_plugins_data()) |