Skip to content

Commit

Permalink
do not rely in ServerTime. For #8480 (#8481)
Browse files Browse the repository at this point in the history
  • Loading branch information
belforte authored Jun 6, 2024
1 parent 7bac1b7 commit 7a30d44
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/python/JobAutoTuner-py3/JobAutoTuner.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def needOverflow(self, jobObject):
returns: True/False
"""

currIdleTime = jobObject["ServerTime"] - jobObject["QDate"]
currIdleTime = int(time.time()) - jobObject["QDate"]
currIdleTime = int(currIdleTime/60) # from seconds to minutes

idleTooMuch = currIdleTime > 0 and (currIdleTime - self.maxIdleTime) > 0
Expand Down Expand Up @@ -237,7 +237,6 @@ def run(self):
"DAGManJobId",
"JobStatus",
"JobUniverse",
"ServerTime",
"QDate",
"CMS_ALLOW_OVERFLOW",
"DESIRED_SITES"]
Expand Down

0 comments on commit 7a30d44

Please sign in to comment.