From 6c01821c3dc97b98edc073062a2245d0cbfaf09f Mon Sep 17 00:00:00 2001 From: David Schultz Date: Sat, 19 Oct 2024 14:46:09 -0500 Subject: [PATCH] actually get history --- iceprod/server/plugins/condor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iceprod/server/plugins/condor.py b/iceprod/server/plugins/condor.py index 3b716698..359d05e8 100644 --- a/iceprod/server/plugins/condor.py +++ b/iceprod/server/plugins/condor.py @@ -441,7 +441,7 @@ def get_history(self, since=None) -> {CondorJobId: CondorJob}: Get all jobs currently on the condor history. """ ret = {} - for ad in self.condor_schedd.query( + for ad in self.condor_schedd.history( constraint=f'IceProdSite =?= "{self.cfg["queue"].get("site", "unknown")}"', projection=['ClusterId', 'ProcId'] + self.AD_PROJECTION_HISTORY, since=f'CompletionDate<{since}' if since else None,