diff --git a/src/python/TaskWorker/Actions/DagmanSubmitter.py b/src/python/TaskWorker/Actions/DagmanSubmitter.py index 87c2501322..212111f2cf 100644 --- a/src/python/TaskWorker/Actions/DagmanSubmitter.py +++ b/src/python/TaskWorker/Actions/DagmanSubmitter.py @@ -318,7 +318,7 @@ def duplicateCheck(self, task): '&& (isUndefined(CRAB_Attempt) || CRAB_Attempt == 0)' self.logger.debug("Duplicate check is querying the schedd: %s", rootConst) - results = list(schedd.xquery(rootConst, [])) + results = list(schedd.query(rootConst, [])) self.logger.debug("Schedd queried %s", results) except Exception as exp: msg = "The CRAB server backend was not able to contact the Grid scheduler." diff --git a/src/python/TaskWorker/Actions/Recurring/RenewRemoteProxies.py b/src/python/TaskWorker/Actions/Recurring/RenewRemoteProxies.py index e5afa96dca..9a4110add4 100644 --- a/src/python/TaskWorker/Actions/Recurring/RenewRemoteProxies.py +++ b/src/python/TaskWorker/Actions/Recurring/RenewRemoteProxies.py @@ -150,7 +150,7 @@ def execute_schedd(self, schedd_name, collector): self.logger.debug("Schedd found at %s", schedd_ad['MyAddress']) schedd = htcondor.Schedd(schedd_ad) self.logger.debug("Querying schedd for CRAB3 tasks.") - task_ads = list(schedd.xquery('TaskType =?= "ROOT" && CRAB_HC =!= "True"', QUERY_ATTRS)) + task_ads = list(schedd.query('TaskType =?= "ROOT" && CRAB_HC =!= "True"', QUERY_ATTRS)) self.logger.info("There were %d tasks found.", len(task_ads)) ads = {} now = time.time() diff --git a/src/script/Monitor/GenerateMONIT.py b/src/script/Monitor/GenerateMONIT.py index 32dd9099cf..07574f59f7 100644 --- a/src/script/Monitor/GenerateMONIT.py +++ b/src/script/Monitor/GenerateMONIT.py @@ -292,11 +292,11 @@ def execute(self): continue schedd = htcondor.Schedd(scheddAdd) try: - idleDags = list(schedd.xquery(pickSchedulerIdle)) + idleDags = list(schedd.query(pickSchedulerIdle)) except Exception: idleDags = [] try: - runningTPs = list(schedd.xquery(pickLocalRunning)) + runningTPs = list(schedd.query(pickLocalRunning)) except Exception: runningTPs = [] numDagIdle = len(idleDags)