Skip to content

Commit 68e7d4c

Browse files
hmiyakeweb-flow
authored andcommitted
sweep: DIRACGrid#7909 fix (Transformation): use UTC to calculate older in export_getTasksToSubmit
1 parent f48deae commit 68e7d4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DIRAC/TransformationSystem/Service/TransformationManagerHandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ def export_getTasksToSubmit(self, transName, numTasks, site=""):
412412
submitDict = {}
413413

414414
# Apply a delay to avoid race conditions
415-
older = datetime.datetime.now() - datetime.timedelta(seconds=30)
415+
older = datetime.datetime.utcnow() - datetime.timedelta(seconds=30)
416416

417417
# Retrieve tasks that are ready for submission
418418
res = self.transformationDB.getTasksForSubmission(

0 commit comments

Comments
 (0)