From 68e7d4ca0e6781bb12aeb1b0d5dd12e8d5b406c7 Mon Sep 17 00:00:00 2001 From: Hideki Miyake Date: Mon, 25 Nov 2024 08:15:02 +0100 Subject: [PATCH] sweep: #7909 fix (Transformation): use UTC to calculate older in export_getTasksToSubmit --- .../Service/TransformationManagerHandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DIRAC/TransformationSystem/Service/TransformationManagerHandler.py b/src/DIRAC/TransformationSystem/Service/TransformationManagerHandler.py index 8bb87544f56..ee89cfad3cf 100644 --- a/src/DIRAC/TransformationSystem/Service/TransformationManagerHandler.py +++ b/src/DIRAC/TransformationSystem/Service/TransformationManagerHandler.py @@ -412,7 +412,7 @@ def export_getTasksToSubmit(self, transName, numTasks, site=""): submitDict = {} # Apply a delay to avoid race conditions - older = datetime.datetime.now() - datetime.timedelta(seconds=30) + older = datetime.datetime.utcnow() - datetime.timedelta(seconds=30) # Retrieve tasks that are ready for submission res = self.transformationDB.getTasksForSubmission(