From 9125b4bcd86a5cbc695c144bbfd3d422e35d9300 Mon Sep 17 00:00:00 2001 From: Federico Stagni Date: Wed, 26 Jun 2024 16:16:44 +0200 Subject: [PATCH] fix: update the LastUpdateTime when setting the job to Matched status --- src/DIRAC/WorkloadManagementSystem/Client/Matcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DIRAC/WorkloadManagementSystem/Client/Matcher.py b/src/DIRAC/WorkloadManagementSystem/Client/Matcher.py index 0ebec4d16a7..33fd28b0e95 100644 --- a/src/DIRAC/WorkloadManagementSystem/Client/Matcher.py +++ b/src/DIRAC/WorkloadManagementSystem/Client/Matcher.py @@ -250,7 +250,7 @@ def _reportStatus(self, resourceDict, jobID): """ attNames = ["Status", "MinorStatus", "ApplicationStatus", "Site"] attValues = ["Matched", "Assigned", "Unknown", resourceDict["Site"]] - result = self.jobDB.setJobAttributes(jobID, attNames, attValues) + result = self.jobDB.setJobAttributes(jobID, attNames, attValues, update=True) if not result["OK"]: self.log.error("Problem reporting job status", f"setJobAttributes, jobID = {jobID}: {result['Message']}") else: