From e6a425f3321a40d49467f11dfd090ec708f0570e Mon Sep 17 00:00:00 2001 From: Hideki Miyake Date: Mon, 25 Nov 2024 15:06:30 +0900 Subject: [PATCH] fix (Transformation): get older based on utc --- .../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 6175a27ce3c..3a011dca7a3 100644 --- a/src/DIRAC/TransformationSystem/Service/TransformationManagerHandler.py +++ b/src/DIRAC/TransformationSystem/Service/TransformationManagerHandler.py @@ -413,7 +413,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(