Skip to content

Commit

Permalink
fix (JobLoggingDB): correctly order the logging info to pick the last…
Browse files Browse the repository at this point in the history
…est entry for a given status
  • Loading branch information
chaen committed Nov 22, 2023
1 parent 6cd3254 commit 9ec7ccf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DIRAC/WorkloadManagementSystem/DB/JobLoggingDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def getWMSTimeStamps(self, jobID):
# self.log.debug('getWMSTimeStamps: Retrieving Timestamps for Job %d' % int(jobID))

result = {}
cmd = "SELECT Status,StatusTimeOrder FROM LoggingInfo WHERE JobID=%d" % int(jobID)
cmd = "SELECT Status,StatusTimeOrder FROM LoggingInfo WHERE JobID=%d ORDER BY StatusTimeOrder" % int(jobID)
resCmd = self._query(cmd)
if not resCmd["OK"]:
return resCmd
Expand Down

0 comments on commit 9ec7ccf

Please sign in to comment.